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 the following Python functions? |
| A. | Error |
| B. | 1 |
| C. | 9 |
| D. | 6View Answer |
| Answer» C. 9 | |
| 2. |
The function complex(‘2-3j’) is valid but the function complex(‘2 – 3j’) is invalid. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 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. | , 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» C. (a//b, a*b) | |