MCQs
Total Questions : 18
| Page 2 of 2 pages
Answer: Option C. -> none of the mentioned
A list of Nones is printed as to_upper() returns None.
Answer: Option A. -> 123The time taken for the execution of the code
The code shown above will return the numbers 1, 2, 3, followed by the time taken in the execution of the code. Hence option (a) shows the output correctly.
Answer: Option B. -> Address of m
The code shown above returns the address of m. Had we used the statement: print(list(m)), the output would have been: [-4, 16].
Answer: Option A. -> sometimes
math.fabs() always returns a float and does not work with complex numbers whereas the return type of abs() is determined by the type of value that is passed to it.
Answer: Option D. -> none of the mentioned
NameError, we have not defined abcd.
Answer: Option A. -> e
The natural log of x is returned by default.
Answer: Option B. -> False
float('nan') is not a finite number.
Answer: Option A. -> name of the current user logged in
It returns the name of the user who is currently logged in and is running the script.