Python MCQ’s | Variable Names 2

6.
Which of the following is not a keyword?

a) eval
b) assert
c) nonlocal
d) pass

7.
All keywords in Python are in _________

a) lower case
b) UPPER CASE
c) Capitalized
d) None of the mentioned

8.
Which of the following is true for variable names in Python?

a) unlimited length
b) all private members must have leading and trailing underscores
c) underscore and ampersand are the only two special characters allowed
d) none of the mentioned

9.
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

10.
Which of the following cannot be a variable?

a) __init__
b) in
c) it
d) on