a) yes
b) no
c) machine dependent
d) none of the mentioned
Case is always significant while dealing with identifiers in python.
a) 31 characters
b) 63 characters
c) 79 characters
d) none of the mentioned
Identifiers can be of any length.
a) _a = 1
b) __a = 1
c) __str__ = 1
d) none of the mentioned
All the statements will execute successfully but at the cost of reduced readability.
a) my_string_1
b) 1st_string
c) foo
d) _
Variable names should not start with a number.
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
As Python has no concept of private variables, leading underscores are used to indicate variables that must not be accessed from outside the class.
Items per page: