

MCQOPTIONS
Saved Bookmarks
This section includes 8 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 expression shown below results in an error. |
A. | True |
B. | FalseView Answer |
Answer» C. | |
2. |
What will be the output of the following Python expression if x=22.19? |
A. | 22.19 |
B. | 22.00000 |
C. | 22.19 |
D. | 22.20View Answer |
Answer» D. 22.20View Answer | |
3. |
What will be the output of the following Python expression if x=56.236? |
A. | 56 |
B. | 56.24 |
C. | 56.23 |
D. | 0056.236View Answer |
Answer» C. 56.23 | |
4. |
What will be the output of the following Python expression if the value of x is 34? |
A. | 34 |
B. | 34.0000 |
C. | 34.000000 |
D. | 34.00000000View Answer |
Answer» D. 34.00000000View Answer | |
5. |
What will be the output of the following Python expression if X = -122? |
A. | -000122 |
B. | 000122 |
C. | –00122 |
D. | -00122View Answer |
Answer» D. -00122View Answer | |
6. |
Which of the following formatting options can be used in order to add ‘n’ blank spaces after a given string ‘S’? |
A. | print(“-ns”%S) |
B. | print(“-ns”%S) |
C. | print(“%ns”%S) |
D. | print(“%-ns”%S) |
Answer» E. | |
7. |
What will be the output of the following Python expression if X=345? |
A. | 345000 |
B. | 000345 |
C. | 000000345 |
D. | 345000000View Answer |
Answer» C. 000000345 | |
8. |
What will be the output of the following Python expression if x=456? |
A. | 000456 |
B. | 456000 |
C. | 456 |
D. | errorView Answer |
Answer» D. errorView Answer | |