Top 1000+ Solved Problem Solving and Python Programming MCQ Questions Answer
Q. Is Python case sensitive when dealing with identifiers?
a. yes
b. no
c. machine dependent
d. none of the mentioned
Q. What is the maximum possible length of an identifier?
a. 31 characters
b. 63 characters
c. 79 characters
d. none of the mentioned
Q. Why are local variable names beginning with an underscore discouraged?
a. they are used to indicate a private variables of a class
b. they confuse the interpreter
c. they are used to indicate global variables
d. they slow down execution
Q. All keywords in Python are in
a. lower case
b. upper case
c. capitalized
d. none of the mentioned
Q. Which of the following is an invalid statement?
a. abc = 1,000,000
b. a b c = 1000 2000 3000
c. a,b,c = 1000, 2000, 3000
d. a_b_c = 1,000,000