Python - MCQ
Multiple Choice Questions
Python - Multiple Choice Questions (MCQ) - Python Operators and Expression - Set 30
11. What is the output of print(2 ** 3 ** 2)
A). 64
B). 512
View Answer
Correct: B
12. Bitwise shift operators (<<, >>) has higher precedence than Bitwise And(&) operator
A). TRUE
B). FALSE
View Answer
Correct: A
13. What is the output of the following addition (+) operator
a = [10, 20]
b = a
b += [30, 40]
print(a)
print(b)
A). [10, 20, 30, 40]
[10, 20, 30, 40]
B). [10, 20]
[10, 20, 30, 40]
View Answer
Correct: A
14. What is the output of the following code
a = [10, 20]
b = a
b += [30, 40]
A). TRUE
B). 100
C). FALSE
D). 50
View Answer
Correct: D
15. What is the output of the following Python code
x = 10
y = 50
if (x ** 2 > 100 and y < 100):
print(x, y)
A). 100 500
B). 10 50
C). None
D).
View Answer
Correct: C