Python - MCQ

Multiple Choice Questions


Share with a Friend

 

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

21. What is returned by math.ceil(3.4)? 
A). 3
B). 4
C). 4.0
D). 3.0
View Answer
Correct: B


22. What is returned by math.factorial(5)? 
A). 110
B). 120
C). 100
D). 140
View Answer
Correct: B



23. What is returned by operator.eq(1,1.0)? 
A). Equal
B). True
C). False
D). 1
View Answer
Correct: B


24. What will be the output of 

A). error
B). No output
C). 40
D). 0
View Answer
Correct: C



25. Which function is called an anonymous function? 
A). Lambda
B). map
C). filter
D). reduce
View Answer
Correct: A



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper