MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
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» D. print(‚Äö√Ñ√∂‚àö√ë‚àö‚à´%-ns‚Äö√Ñ√∂‚àö√ë‚àöœÄ%S) | |
| 2. |
345000 |
| A. | 000345 |
| B. | 000000345 |
| C. | 345000000 |
| Answer» C. 345000000 | |
| 3. |
000456 |
| A. | 456000 |
| B. | 456 |
| C. | error |
| Answer» D. | |
| 4. |
56 blank spaces before san-foundry |
| A. | 56 blank spaces before san and foundry |
| B. | 56 blank spaces after san-foundry |
| C. | no change |
| Answer» C. no change | |
| 5. |
00000hi |
| A. | 000hi |
| B. | hi000 |
| C. | error |
| Answer» B. hi000 | |