

MCQOPTIONS
Saved Bookmarks
This section includes 7 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 two codes? |
A. | ‘4.56’, ‘4.56,’ |
B. | ‘4.56’, ‘[4.56]’ |
C. | 4.56, [4.56,] |
D. | 4.56, [4.56,]View Answer |
Answer» C. 4.56, [4.56,] | |
2. |
The output of the two codes shown below is the same. |
A. | True |
B. | FalseView Answer |
Answer» B. FalseView Answer | |
3. |
The formatting method {1:<10} represents the ___________ positional argument, _________ justified in a 10 character wide field. |
A. | first, right |
B. | second, left |
C. | first, left |
D. | second, right |
Answer» C. first, left | |
4. |
‘hello world’$# |
A. | ‘hello’ ‘world’ ‘hello’ |
B. | ‘helloworldhello’ |
C. | ‘hello’ ‘hello’ ‘world’ |
Answer» B. ‚Äö√Ñ√∂‚àö√ë‚àö‚â§helloworldhello‚Äö√Ñ√∂‚àö√ë‚àö¬• | |
5. |
[0xFF, 255, 16, 255] |
A. | (‘0xff’, 155, 16, 255) |
B. | Error |
C. | (‘0xff’, 255, 255) |
Answer» C. (‚Äö√Ñ√∂‚àö√ë‚àö‚â§0xff‚Äö√Ñ√∂‚àö√ë‚àö¬•, 255, 255) | |
6. |
Fill in the blanks: |
A. | |
B. | first, right |
C. | second, left |
Answer» B. first, right | |
7. |
‘first=H, third=L’$ |
A. | ‘first=0, third=2’ |
B. | Error |
C. | ‘first=0, third=L’ |
Answer» D. | |