Python

Python

Variable Names has 10 Questions
Is Python case sensitive when dealing with identifier

yes
no
sometimes only
none of the mentioned
What is the maximum possible length of an identifier?

31 characters
63 characters
79 characters
none of the mentioned
Which of the following is invalid?

_a = 1
__a = 1
__str__ = 1
none of the mentioned
Which of the following is an invalid variabel?

my_string_1
1st_string
foo
_
Why are local variable names beginning with an underscore discouraged?

they are used to indicate a private variables of a class
they confuse the interpreter
they are used to indicate global variables
they slow down execution
Which of the following is not a keyword?

eval
assert
nonlocal
pass
All keywords in Python are in

lower case
UPPER CASE
Capitalized
none
Which of the following is true for variable names in Python?

unlimited length
all private members must have leading and trailing underscores
underscore and ampersand are the only two special charaters allowed
none
Which of the following is an invalid statement?

abc = 1,000,000
a b c = 1000 2000 3000
a,b,c = 1000, 2000, 3000
a_b_c = 1,000,000
Which of the following cannot be a variable?

__init__
in
it
on