Python Identifier and Variable - Practice Questions
Section A: Short Questions
1. What is a variable in Python?
2. What is an identifier?
3. Give one example of a valid identifier.
4. Can we use numbers at the beginning of an identifier?
5. What is the use of variable in Python?
Section B: Fill in the Blanks
6. A ______ is used to store data in Python.
7. An ______ is the name given to a variable or function.
8. Python is a ______ sensitive language.
9. Variable name should not start with a ______.
10. ______ are reserved words in Python.
Section C: True / False
11. Variable stores data in Python. (True / False)
12. Identifier can start with a number. (True / False)
13. name_1 is a valid identifier. (True / False)
14. for can be used as an identifier. (True / False)
15. Python is case-insensitive. (True / False)
Section D: Find the Error
16. 1name = 'Ram'
17. for = 20
18. total@marks = 90
Section E: Long Questions
19. Explain variable in Python with example.
20. What is identifier? Explain its rules.
21. Write differences between variable and identifier.
22. Write rules for naming variables in Python.
23. Explain different types of variables with examples.