Explore topic-wise MCQs in Python.

This section includes 3 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 output of the following codes are the same.

A. True
B. FalseView Answer
Answer» B. FalseView Answer
2.

The single line equivalent of the following Python code?

A. filter(lambda x:x<0, l)
B. filter(lambda x, y: x<0, l)
C. filter(reduce x<0, l)
D. reduce(x: x<0, l)View Answer
Answer» B. filter(lambda x, y: x<0, l)
3.

Which of the following numbers will not be a part of the output list of the following Python code?

A. 1
B. 29
C. 6
D. 10View Answer
Answer» E.