MCQOPTIONS
Saved Bookmarks
This section includes 3 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 will be the output of print(math.factorial(4.5))? |
| A. | 24 |
| B. | 120 |
| C. | error |
| D. | 24.0 |
| Answer» D. 24.0 | |
| 2. |
Is the output of the function abs() the same as that of the function math.fabs()? |
| A. | sometimes |
| B. | always |
| C. | never |
| D. | none of the mentioned |
| Answer» B. always | |
| 3. |
What will be the output of print(math.copysign(3, -1))? |
| A. | 1 |
| B. | 1.0 |
| C. | -3 |
| D. | -3.0 |
| Answer» E. | |