Questions)
🔹 Basics of Programming (1–15)
1. What is a variable?
A. A fixed value
B. A storage location for data
C. A loop structure
D. A function
Answer: B – Stores data that can change.
2. Which is a valid variable name in Python?
A. 2name
B. user-name
C. user_name
D. user name
Answer: C
3. What does a compiler do?
A. Executes code line-by-line
B. Translates code to machine language
C. Stores variables
D. Deletes errors
Answer: B
4. Which is a programming language?
A. HTML
B. HTTP
C. Python
D. SQL Server
Answer: C
5. What is pseudocode used for?
A. Running programs
B. Designing logic in plain language
C. Debugging hardware
D. Encrypting data
Answer: B
, 6. What is an algorithm?
A. A bug
B. A step-by-step solution
C. A variable type
D. A compiler
Answer: B
7. What is debugging?
A. Writing code
B. Testing and fixing errors
C. Running code faster
D. Compiling programs
Answer: B
8. Which symbol is used for comments in Python?
A. //
B. <!-- -->
C. #
D. **
Answer: C
9. What is syntax?
A. Program speed
B. Rules of writing code
C. Memory storage
D. Output display
Answer: B
10. What happens if syntax is wrong?
A. Program runs slowly
B. Program crashes or errors
C. Output improves
D. Nothing
Answer: B
11. Which is NOT a programming language?
A. Java
B. Python
C. Excel
D. C++
Answer: C
12. What is an IDE?
A. Internet data engine
B. Integrated Development Environment
C. Input data editor