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. |
The function complex(‘2-3j’) is valid but the function complex(‘2 – 3j’) is invalid. State whether this statement is true or false?# |
| A. | True |
| B. | False |
| Answer» C. | |
| 2. |
00, 0.50) |
| A. | |
| B. | (2, 0.5) |
| C. | |
| D. | (2.0, 0.5) |
| Answer» C. | |
| 3. |
The function divmod(a,b), where both ‘a’ and ‘b’ are integers is evaluated as:$ |
| A. | (a%b, a//b) |
| B. | (a//b, a%b) |
| C. | (a//b, a*b) |
| D. | (a/b, a%b) |
| Answer» B. (a//b, a%b) | |