

McqMate
Q. |
Which of the following functions will not result in an error when no arguments are passed to it? |
A. | min() |
B. | divmod() |
C. | all() |
D. | float() |
Answer» D. float() | |
Explanation: the built-in functions min(), max(), divmod(), ord(), any(), all() etc throw an error when no arguments are passed to them. however there are some built-in functions like float(), complex() etc which do not throw an error when no arguments are passed to them. the output of float() is 0.0. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet