Python - MCQ
Multiple Choice Questions
Python - Multiple Choice Questions (MCQ) - Python Operators and Control Flow Statements - Set 9
6. What is the output of this expression, 3*1**3?
A). a) 27
B). b) 9
C). c) 3
D). d) 1
View Answer
Correct: C
7. Which one of the following has the same precedence level?
A). a) Addition and Subtraction
B). b) Multiplication, Division and Addition
C). c) Multiplication, Division, Addition and Subtraction
D). d) Addition and Multiplication
View Answer
Correct: A
8. The expression Int(x) implies that the variable x is converted to an integer.
A). TRUE
B). FALSE
View Answer
Correct: A
9. What is the output of print(2%6)
A). ValueError
B). 0.33
C). 2
D). 3
View Answer
Correct: C
10. Which of these is the keyword?
A). A. in
B). B. is
C). C. assert
D). D. All of the above
View Answer
Correct: D