Your browser does not support Javascript!
H E L P D I C E



MCQ Problems / Explanations

CATEGORIES


Ad
Note* : We need your help, to provide better service of MCQ's, So please have a minute and type the question on which you want MCQ's to be filled in our MCQ Bank

Python MCQ's

Ad
Is Python case sensitive when dealing with identifiers?
S Python
A
Explanation
Case is always significant
B
C
D
Show Answer
What is the maximum possible length of an identifier?
S Python
A
B
C
D
Explanation
Identifiers can be of any length.
Show Answer
Which of the following is invalid?
S Python
A
B
C
D
Explanation
All the statements will execute successfully but at the cost of reduced readability.
Show Answer
Which of the following is an invalid variable?
S Python
A
B
Explanation
Variable names should not start with a number
C
D
Show Answer
Why are local variable names beginning with an underscore discouraged?
S Python
A
Explanation
As Python has no concept of private variables, leading underscores are used to indicate variables that must not be accessed from outside the class
B
C
D
Show Answer
Which of the following is not a keyword?
S Python
A
Explanation
eval can be used as a variable.
B
C
D
Show Answer
All keywords in Python are in _________
S Python
A
B
C
D
Explanation
None are capitalized while the others are in lower case.
Show Answer
Which of the following is true for variable names in Python?
S Python
A
Explanation
Variable names can be of any length.
B
C
D
Show Answer
Which of the following is an invalid statement?
S Python
A
B
Explanation
Spaces are not allowed in variable names.
C
D
Show Answer
Which of the following cannot be a variable?
S Python
A
B
Explanation
in is a keyword.
C
D
Show Answer

Tags:
Question and answers in Python, Python multiple choice questions and answers, python Important MCQs, Solved MCQs for python, python MCQs with answers PDF download