Simple programming concepts for absolute beginners. Start your coding journey!
1. What is the correct file extension for a Python file?
💡 Python files use the .py extension. For example: hello.py
2. Which data type stores whole numbers?
💡 An integer (int) stores whole numbers without decimal points, like 1, 42, or -7.
3. Which symbol is used for single-line comments in Python?
💡 In Python, the # symbol is used to write single-line comments.
4. What is a variable in programming?
💡 A variable is a named container that stores data which can change during program execution.
5. What does "bug" mean in programming?
💡 A bug is an error, flaw, or unexpected behavior in a program that causes it to produce incorrect results.
6. Which of these is a programming language?
💡 Python is a programming language. HTML and CSS are markup/styling languages, HTTP is a protocol.
7. What is the output of: print("Hello, World!")?
💡 The print() function outputs exactly what is inside the quotes: Hello, World!
8. What does CPU stand for?
💡 CPU stands for Central Processing Unit — the primary component that executes instructions in a computer.
9. What does HTML stand for?
💡 HTML stands for HyperText Markup Language — the standard language for creating web pages.
10. Which of these is used to store a list of items in Python?
💡 A list in Python stores multiple items in a single variable: my_list = [1, 2, 3].