Python - MCQ

Multiple Choice Questions


Share with a Friend

 

Python - Multiple Choice Questions (MCQ) - Python Operators and Control Flow Statements - Set 8

1. Which is the correct operator for power(xy)? 
A). a) x^y
B). b) x**y
C). c) x^^y
D). d) None of the mentioned
View Answer
Correct: B



2. Which one of these is floor division? 
A). a) /
B). b) //
C). c) %
D). d) None of the mentioned
View Answer
Correct: B


3. What is the order of precedence in python?

A). a) i,ii,iii,iv,v,vi
B). b) ii,i,iii,iv,v,vi
C). c) ii,i,iv,iii,v,vi
D). d) i,ii,iii,iv,vi,v
View Answer
Correct: A



4. What is the answer to this expression, 22 % 3 is? 
A). a) 7
B). b) 1
C). c) 0
D). d) 5
View Answer
Correct: B


5. Mathematical operations can be performed on a string. 
A). TRUE
B). FALSE
View Answer
Correct: B



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper