Python Programming Multiple Choice Question - Variables And Operators

This section focuses on the "Variables And Operators" of the Python programming. These Multiple Choice Questions (mcq) should be practiced to improve the Python programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

1. How many keywords are there in python 3.7?

A. 32
B. 33
C. 31
D. 30

View Answer

2. What is the maximum length of an identifier in python?

A. 32
B. 31
C. 63
D. None of the above

View Answer

3. All keyword in python are in

A. Lowercase
B. Uppercase
C. Both uppercase & Lowercase
D. None of the above

View Answer

4. Which of the following statment is False?

A. Variable names can be arbitrarily long.
B. They can contain both letters and numbers.
C. Variable name can begin with underscore.
D. Variable name can begin with number.

View Answer

5. Which of the following is a valid variable?

A. var@
B. 32var
C. class
D. abc_a_c

View Answer

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

A. they confuse the interpreter
B. they are used to indicate a private variables of a class
C. they are used to indicate global variables
D. they slow down execution

View Answer

7. Which of these are keyword?

A. in
B. is
C. assert
D. All of the above

View Answer

8. What is the output of the following code : print 5//2

A. 2
B. 2.5
C. 2.0
D. Error

View Answer

Also check :


* You must be logged in to add comment.