Instruction

  • Test have total 20 questions.
  • Test time is 20 minutes.

Python MCQ questions based on variables names & basic operators

Q 1.
Is Python case sensitive when dealing with identifiers?

Q 2.
What is the maximum possible length of an identifier?

Q 3.
Which of the following is invalid?

Q 4.
Which of the following is an invalid variable?

Q 5.
Why are local variable names beginning with an underscore discouraged?

Q 6.
Which of the following is not a keyword?

Q 7.
All keywords in Python are in _________

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

Q 9.
Which of the following is an invalid statement?

Q 10.
Which of the following cannot be a variable?

Q 11.
Which is the correct operator for power(xy)?

Q 12.
Which one of these is floor division?

Q 13.
What is the order of precedence in python?
i)   Parentheses
ii)  Exponential
iii) Multiplication
iv)  Division
v)   Addition
vi)  Subtraction

Q 14.
What is the answer to this expression, 22 % 3 is?

Q 15.
Mathematical operations can be performed on a string.

Q 16.
Operators with the same precedence are evaluated in which manner?

Q 17.
What is the output of this expression, 3*1**3?

Q 18.
Which one of the following has the same precedence level?

Q 19.
The expression Int(x) implies that the variable x is converted to integer.

Q 20.
Which one of the following has the highest precedence in the expression?


Time: