Python - MCQ

Multiple Choice Questions


Share with a Friend

 

Python - Multiple Choice Questions (MCQ) - Python Operators and Expression - Set 29

6. What is the output of print(10 - 4 * 2)
A). 2
B). 12
C).
D).
View Answer
Correct: A


7. What is the output of print(2 * 3 ** 3 * 4)
A). 216
B). 864
C).
D).
View Answer
Correct: A


View Answer
Correct: A


8. What is the output of the following assignment operator

y = 10
x = y += 2
print(x)
A). 12
B). 10
C). SynatxError
D).
View Answer
Correct: C


9. 4 is 100 in binary and 11 is 1011. What is the output of the following bitwise operators?

a = 4
b = 11
print(a | b)
print(a >> 2)
A). 15
1
B). 14
1
View Answer
Correct: A


10. What is the value of the following Python Expression

print(36 / 4)
A). 9.0
B). 9
View Answer
Correct: A



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper