0% found this document useful (0 votes)
3 views1 page

Python Identifier Variable Questions

The document consists of practice questions related to Python identifiers and variables, divided into sections including short questions, fill in the blanks, true/false statements, error identification, and long questions. It covers fundamental concepts such as the definition of variables and identifiers, their rules, and examples. The questions aim to test understanding of Python's syntax and conventions.

Uploaded by

gyanabhinav3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Python Identifier Variable Questions

The document consists of practice questions related to Python identifiers and variables, divided into sections including short questions, fill in the blanks, true/false statements, error identification, and long questions. It covers fundamental concepts such as the definition of variables and identifiers, their rules, and examples. The questions aim to test understanding of Python's syntax and conventions.

Uploaded by

gyanabhinav3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like