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.

TOO_MANY_ARGUMENTS_FOR_SUM()_METHOD?$

A. The method sum() doesn’t exist for tuples
B. 12
C. 9
Answer» B. 12
2.

Now, a=(1,2,4)

A. Now, a=(1,3,4)
B. Now a=(3,4)
C. Error as tuple is immutable
Answer» C. Error as tuple is immutable
3.

(‘Check’,’Check’,’Check’)$

A. * Operator not valid for tuples
B. (‘CheckCheckCheck’)
C. Syntax error
Answer» D.
4.

False

A. True
B. Error, < operator is not valid for tuples
C. Error, < operator is valid for tuples but not if there are sub-tuples
Answer» D.