Which of the following is true for variable names in Python?
A. underscore and ampersand are the only two special characters allowed
B. unlimited length
C. all private members must have leading and trailing underscores
D. none of the mentioned
Answer: Option B
Solution (By Examveda Team)
In Python, variable names have the following characteristics:They can be of unlimited length, allowing for descriptive and meaningful names.
They can consist of letters (both uppercase and lowercase), digits, and underscores (_).
They cannot begin with a digit.
They are case-sensitive, meaning uppercase and lowercase letters are considered distinct.
Therefore, the correct statement for variable names in Python is that they have unlimited length.
What is Python primarily used for?
A. Web browsing
B. Data analysis
C. Video editing
D. Game development
Who developed Python Programming Language?
A. Wick van Rossum
B. Rasmus Lerdorf
C. Guido van Rossum
D. Niene Stom
Which of the following is an advantage of Python?
A. It compiles to machine code
B. It enforces strict typing
C. It has a large standard library
D. It requires extensive memory management
What is the role of the Python interpreter?
A. To convert Python code to assembly language
B. To manage memory allocation
C. To execute Python code line by line
D. To compile Python code into bytecode

Join The Discussion