

MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.
1. |
What is returned by int(math.pow(3, 2))? |
A. | 6 |
B. | 9 |
C. | error, third argument required |
D. | error, too many arguments |
Answer» C. error, third argument required | |
2. |
Which of the following aren t defined in the math module? |
A. | log2() |
B. | log10() |
C. | logx() |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
3. |
What is the output of print(math.trunc( 3.1 ))? |
A. | 3 |
B. | 3.0 |
C. | error |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
4. |
What is the result of math.trunc(3.1)? |
A. | 3.0 |
B. | 3 |
C. | 0.1 |
D. | 1 |
Answer» C. 0.1 | |