CommerceTuples In Python MCQs
Practice Tuples In Python MCQs for competitive exams.
Tuples In Python MCQs
Practice questions from this topic.
What does the len() function do when applied to a list or tuple?
- A. Returns the length of the list or tuple
- B. Converts the list or tuple to lowercase
- C. Converts the list or tuple to uppercase
- D. Removes the last element
Correct Answer: A
What method is used to insert an element at a specific index in a list or tuple?
- A. insert()
- B. add()
- C. append()
- D. push()
Correct Answer: A
Which of the following data types in Python is mutable?
- A. List
- B. Tuple
- C. String
- D. Dictionary
Correct Answer: A