Explore topic-wise MCQs in Python.

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

1.

all characters of my_string that aren’t vowels$

A. a list of Nones
B. list of Trues
C. list of Falses
Answer» D.
2.

prints all the vowels in my_string

A. prints all the consonants in my_string
B. prints all characters of my_string that aren’t vowels
C. prints only on executing print(k)
Answer» C. prints only on executing print(k)