Skip to main content

Tuples In Python — Part 1 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Tuples In Python — Part 1 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.

Questions
40
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
48 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
40

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/40 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 40
★ FPSC ★ PPSC

What will be the output of the following code: my_tuple = (1, 2, 3) my_tuple[1] = 4 print(my_tuple)

Question 2 of 40
★ FPSC ★ PPSC

Which of the following data types in Python is mutable?

Question 3 of 40
★ FPSC ★ PPSC

What method is used to insert an element at a specific index in a list or tuple?

Question 4 of 40
★ FPSC ★ PPSC

What does the len() function do when applied to a list or tuple?

Question 5 of 40
★ FPSC ★ PPSC

How can you add an element at the end of a list or tuple in Python?

Question 6 of 40
★ FPSC ★ PPSC

What is the purpose of the remove() method for lists and tuples?

Question 7 of 40
★ FPSC ★ PPSC

Which method is used to count the occurrences of an element in a list or tuple?

Question 8 of 40
★ FPSC ★ PPSC

Which method is used to remove the last element from a list or tuple?

Question 9 of 40
★ FPSC ★ PPSC

In Python, how can you check if an element exists in a list or tuple?

Question 10 of 40
★ FPSC ★ PPSC

In Python, how can you copy the elements of one list or tuple into another?

Question 11 of 40
★ FPSC ★ PPSC

What is the purpose of the clear() method for lists and tuples?

Question 12 of 40
★ FPSC ★ PPSC

In Python, how can you find the index of a specific element in a list or tuple?

Question 13 of 40
★ FPSC ★ PPSC

Which method is used to sort the elements of a list or tuple in ascending order?

Question 14 of 40
★ FPSC ★ PPSC

In Python, how can you extend a list or tuple by adding elements from another iterable?

Question 15 of 40
★ FPSC ★ PPSC

Which method is used to remove the first occurrence of a specific element in a list or tuple?

Question 16 of 40
★ FPSC ★ PPSC

In Python, how can you join two or more lists or tuples together?

Question 17 of 40
★ FPSC ★ PPSC

In Python, how can you remove all occurrences of a specific element from a list or tuple?

Question 18 of 40
★ FPSC ★ PPSC

What is the purpose of the reverse() method for lists and tuples?

Question 19 of 40
★ FPSC ★ PPSC

What is the purpose of the count() method for lists and tuples?

Question 20 of 40
★ FPSC ★ PPSC

What is the output of the following code: my_tuple = (1, 2, 3) print(my_tuple[1])

Question 21 of 40
★ FPSC ★ PPSC

What will the following code output: my_tuple = (1, 2, 3) new_tuple = my_tuple.copy() print(new_tuple)

Question 22 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>>t1 = (1, 2, 4, 3) >>>t2 = (1, 2, 3, 4) >>>t1 < t2

Question 23 of 40
★ FPSC ★ PPSC

What is the data type of (1)?

Question 24 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>>t=(1,2,4,3) >>>t[1:-1]

Question 25 of 40
★ FPSC ★ PPSC

Is the following Python code valid? >>> a=(1,2,3) >>> b=('A','B','C') >>> c=tuple(zip(a,b))

Question 26 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>> a=("Check")*3 >>> a

Question 27 of 40
★ FPSC ★ PPSC

Is the following Python code valid? >>> a=(1,2,3,4) >>> del a

Question 28 of 40
★ FPSC ★ PPSC

Suppose t = (1, 2, 4, 3), which of the following is incorrect?

Question 29 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>> a=[(2,4),(1,2),(3,9)] >>> a.sort() >>> a

Question 30 of 40
★ FPSC ★ PPSC

What type of data is: a=[(1,1),(2,4),(3,9)]?

Question 31 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>> import collections >>> a=collections.namedtuple('a',['i','j']) >>> obj=a(i=4,j=7) >>> obj

Question 32 of 40
★ FPSC ★ PPSC

Tuples can't be made keys of a dictionary.

Question 33 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>> a=(0,1,2,3,4) >>> b=slice(0,2) >>> a[b]

Question 34 of 40
★ FPSC ★ PPSC

Is the following Python code valid? >>> a,b,c=1,2,3 >>> a,b,c

Question 35 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>>t = (1, 2) >>>2 * t

Question 36 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>> a,b=6,7 >>> a,b=b,a >>> a,b

Question 37 of 40
★ FPSC ★ PPSC

If a=(1,2,3,4), a[1:-1] is . . . . . . . .

Question 38 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? 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)

Question 39 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? d = {"john":40, "peter":45} d["john"]

Question 40 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>> a=(2,3,4) >>> sum(a,3)

✓ Link copied to clipboard
Continue Your Practice

Advance Html — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Programming & Software Development

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Programming & Software Development

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →