Explore topic-wise MCQs in Python.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.

1.

.plus built-in names set by Python….}$

A. {……Built in names set by Python……}
B. {‘a’ : ‘hello’, ‘q’ : 10}
C. Error
Answer» B. {‚Äö√Ñ√∂‚àö√ë‚àö‚â§a‚Äö√Ñ√∂‚àö√ë‚àö¬• : ‚Äö√Ñ√∂‚àö√ë‚àö‚â§hello‚Äö√Ñ√∂‚àö√ë‚àö¬•, ‚Äö√Ñ√∂‚àö√ë‚àö‚â§q‚Äö√Ñ√∂‚àö√ë‚àö¬• : 10}
2.

35 | 03.35 | +003.3‚Äö√Ñ√∂‚àö√ë‚àö¬?#

A. ‘3.3456789 | 03.3456789 | +03.3456789’
B. Error
C. ‘3.34 | 03.34 | 03.34+’
Answer» D.
3.

‘integers:…1234…1234 …001234’$

A. ‘integers…1234…1234…123400’
B. ‘integers:… 1234…1234…001234’
C. ‘integers:…1234…1234…001234’
Answer» B. ‚Äö√Ñ√∂‚àö√ë‚àö‚â§integers:‚Äö√Ñ√∂‚àö√묨‚àÇ 1234‚Äö√Ñ√∂‚àö√묨‚àÇ1234‚Äö√Ñ√∂‚àö√묨‚àÇ001234‚Äö√Ñ√∂‚àö√ë‚àö¬•
4.

The output of which of the codes shown below will be: “There are 4 blue birds.”?$

A. ‘There are %g %d birds.’ %4 %blue
B. ‘There are %d %s birds.’ %(4, blue)
C. ‘There are %s %d birds.’ %[4, blue]
D. ‘There are %d %s birds.’ 4, blue
Answer» B. ‚Äö√Ñ√∂‚àö√ë‚àö‚â§There are %d %s birds.‚Äö√Ñ√∂‚àö√ë‚àö¬• %(4, blue)