# Welcome to the Tuples and Sets MCQs Page

Dive deep into the fascinating world of Tuples and Sets with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Tuples and Sets, a crucial aspect of Python. In this section, you will encounter a diverse range of MCQs that cover various aspects of Tuples and Sets, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Python.

Check out the MCQs below to embark on an enriching journey through Tuples and Sets. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Python.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Tuples and Sets. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

### Tuples and Sets MCQs | Page 1 of 10

Q1.
Which of the following is a Python tuple?

d.

{}

Q2.
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
Q3.
What will be the output?
>>>t=(1,2,4,3)
>>>t[1:3]

Q4.
What will be the output?
>>>t=(1,2,4,3)
>>>t[1:-1]

Q5.
What will be the output?
>>>t = (1, 2, 4, 3, 8, 9)
>>>[t[i] for i in range(0, len(t), 2)]

Q6.
What will be the output?
d = {"john":40, "peter":45}
d["john"]

Q7.
What will be the output?
>>>t = (1, 2)
>>>2 * t

Q8.
What will be the output?
>>>t1 = (1, 2, 4, 3)
>>>t2 = (1, 2, 3, 4)
>>>t1 < t2

Q9.
What will be the output?
>>>my_tuple = (1, 2, 3, 4)
>>>my_tuple.append( (5, 6, 7) )
>>>print len(my_tuple)

Q10.
What will be the output?
numberGames = {}
numberGames[(1,2,4)] = 8
numberGames[(4,2,1)] = 10
numberGames[(1,2)] = 12
sum = 0
for k in numberGames:
sum += numberGames[k]
print len(numberGames) + sum