Python - MCQ

Multiple Choice Questions


Share with a Friend

 

Python - Multiple Choice Questions (MCQ) - Python functions, Modules and Packages - Set 21

11. Which of the following functions is a built-in function in python? 
A). array()
B). sqrt()
C). factorial()
D). print()
View Answer
Correct: D



12. What will be the output of the following Python expression? round(4.576) 
A). 4.5
B). 5
C). 4
D). 4.6
View Answer
Correct: B



13. What will be the output of the following Python function? all([2,4,0,6]) 
A). Error
B). True
C). False
D). 0
View Answer
Correct: C


14. What will be the output of the following Python expression? round(4.5676,2) 
A). 4.5
B). 4.6
C). 4.57
D). 4.56
View Answer
Correct: C



15. What will be the output of the following Python function? any([2>8, 4>2, 1>2]) 
A). Error
B). True
C). False
D). 4>2
View Answer
Correct: B



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper