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
🎉 Set complete! All 40 questions answered.
Question 1 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following code: my_tuple = (1, 2, 3) my_tuple[1] = 4 print(my_tuple)
Correct Answer: Option D — None of these
Detailed Academic Explanation:
Tuples in Python are immutable, meaning their elements cannot be changed after creation. In the given code, my_tuple = (1, 2, 3) initializes a tuple with three elements. The line my_tuple[1] = 4 attempts to modify the second element of the tuple, which is not allowed. As a result, Python raises a TypeError stating that 'tuple' object does not support item assignment. Since the code causes an error and does not produce any valid tuple as output, the correct answer is "None of these."
💡Key Conceptual Anchor:Tuples In Python
Question 2 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following data types in Python is mutable?
Correct Answer: Option A — List
Detailed Academic Explanation:
List is the correct answer to “Which of the following data types in Python is mutable”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 3 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What method is used to insert an element at a specific index in a list or tuple?
Correct Answer: Option A — insert()
Detailed Academic Explanation:
insert() is the correct answer to “What method is used to insert an element at a specific index in a list or tuple”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 4 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What does the len() function do when applied to a list or tuple?
Correct Answer: Option A — Returns the length of the list or tuple
Detailed Academic Explanation:
Returns the length of the list or tuple is the correct answer to “What does the len() function do when applied to a list or tuple”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 5 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
How can you add an element at the end of a list or tuple in Python?
Correct Answer: Option A — append()
Detailed Academic Explanation:
append() is the correct answer to “How can you add an element at the end of a list or tuple in Python”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 6 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the purpose of the remove() method for lists and tuples?
Correct Answer: Option A — Removes the specified element
Detailed Academic Explanation:
Removes the specified element is the correct answer to “What is the purpose of the remove() method for lists and tuples”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 7 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which method is used to count the occurrences of an element in a list or tuple?
Correct Answer: Option A — count()
Detailed Academic Explanation:
count() is the correct answer to “Which method is used to count the occurrences of an element in a list or tuple”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 8 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which method is used to remove the last element from a list or tuple?
Correct Answer: Option B — remove()
Detailed Academic Explanation:
remove() is the correct answer to “Which method is used to remove the last element from a list or tuple”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 9 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In Python, how can you check if an element exists in a list or tuple?
Correct Answer: Option A — in keyword
Detailed Academic Explanation:
in keyword is the correct answer to “In Python, how can you check if an element exists in a list or tuple”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 10 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In Python, how can you copy the elements of one list or tuple into another?
Correct Answer: Option A — copy()
Detailed Academic Explanation:
copy() is the correct answer to “In Python, how can you copy the elements of one list or tuple into another”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 11 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the purpose of the clear() method for lists and tuples?
Correct Answer: Option A — Removes all elements from the list or tuple
Detailed Academic Explanation:
Removes all elements from the list or tuple is the correct answer to “What is the purpose of the clear() method for lists and tuples”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 12 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In Python, how can you find the index of a specific element in a list or tuple?
Correct Answer: Option A — index()
Detailed Academic Explanation:
index() is the correct answer to “In Python, how can you find the index of a specific element in a list or tuple”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 13 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which method is used to sort the elements of a list or tuple in ascending order?
Correct Answer: Option A — sort()
Detailed Academic Explanation:
sort() is the correct answer to “Which method is used to sort the elements of a list or tuple in ascending order”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 14 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In Python, how can you extend a list or tuple by adding elements from another iterable?
Correct Answer: Option A — extend()
Detailed Academic Explanation:
extend() is the correct answer to “In Python, how can you extend a list or tuple by adding elements from another iterable”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 15 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which method is used to remove the first occurrence of a specific element in a list or tuple?
Correct Answer: Option A — remove()
Detailed Academic Explanation:
remove() is the correct answer to “Which method is used to remove the first occurrence of a specific element in a list or tuple”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 16 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In Python, how can you join two or more lists or tuples together?
Correct Answer: Option A — + operator
Detailed Academic Explanation:
+ operator is the correct answer to “In Python, how can you join two or more lists or tuples together”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 17 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In Python, how can you remove all occurrences of a specific element from a list or tuple?
Correct Answer: Option A — Use a loop and remove() method
Detailed Academic Explanation:
Use a loop and remove() method is the correct answer to “In Python, how can you remove all occurrences of a specific element from a list or tuple”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 18 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the purpose of the reverse() method for lists and tuples?
Correct Answer: Option A — Reverses the order of elements in the list or tuple
Detailed Academic Explanation:
Reverses the order of elements in the list or tuple is the correct answer to “What is the purpose of the reverse() method for lists and tuples”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 19 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the purpose of the count() method for lists and tuples?
Correct Answer: Option A — Counts the occurrences of a specific element
Detailed Academic Explanation:
Counts the occurrences of a specific element is the correct answer to “What is the purpose of the count() method for lists and tuples”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 20 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the output of the following code: my_tuple = (1, 2, 3) print(my_tuple[1])
Correct Answer: Option B — 2
Detailed Academic Explanation:
2 is the correct answer to “What is the output of the following code: my_tuple = (1, 2, 3) print(my_tuple[1])”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 21 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will the following code output: my_tuple = (1, 2, 3) new_tuple = my_tuple.copy() print(new_tuple)
Correct Answer: Option A — (1, 2, 3)
Detailed Academic Explanation:
(1, 2, 3) is the correct answer to “What will the following code output: my_tuple = (1, 2, 3) new_tuple = my_tuple.copy() print(new_tuple)”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 22 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following Python code? >>>t1 = (1, 2, 4, 3) >>>t2 = (1, 2, 3, 4) >>>t1 < t2
Correct Answer: Option B — False
Detailed Academic Explanation:
False is the correct answer to “What will be the output of the following Python code? >>>t1 = (1, 2, 4, 3) >>>t2 = (1, 2, 3, 4) >>>t1 < t2”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 23 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the data type of (1)?
Correct Answer: Option B — Integer
Detailed Academic Explanation:
Integer is the correct answer to “What is the data type of (1)”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 24 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following Python code? >>>t=(1,2,4,3) >>>t[1:-1]
Correct Answer: Option C — (2, 4)
Detailed Academic Explanation:
(2, 4) is the correct answer to “What will be the output of the following Python code? >>>t=(1,2,4,3) >>>t[1:-1]”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 25 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Is the following Python code valid? >>> a=(1,2,3) >>> b=('A','B','C') >>> c=tuple(zip(a,b))
Correct Answer: Option A — Yes, c will be ((1, 'A'), (2, 'B'), (3, 'C'))
Detailed Academic Explanation:
Yes, c will be ((1, 'A'), (2, 'B'), (3, 'C')) is the correct answer to “Is the following Python code valid? >>> a=(1,2,3) >>> b=('A','B','C') >>> c=tuple(zip(a,b))”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 26 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following Python code? >>> a=("Check")*3 >>> a
Correct Answer: Option C — ('CheckCheckCheck')
Detailed Academic Explanation:
('CheckCheckCheck') is the correct answer to “What will be the output of the following Python code? >>> a=("Check")*3 >>> a”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 27 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Is the following Python code valid? >>> a=(1,2,3,4) >>> del a
Correct Answer: Option C — Yes, the entire tuple is deleted
Detailed Academic Explanation:
Yes, the entire tuple is deleted is the correct answer to “Is the following Python code valid? >>> a=(1,2,3,4) >>> del a”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 28 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
Correct Answer: Option B — t[3] = 45
Detailed Academic Explanation:
t[3] = 45 is the correct answer to “Suppose t = (1, 2, 4, 3), which of the following is incorrect”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 29 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following Python code? >>> a=[(2,4),(1,2),(3,9)] >>> a.sort() >>> a
[(1, 2), (2, 4), (3, 9)] is the correct answer to “What will be the output of the following Python code? >>> a=[(2,4),(1,2),(3,9)] >>> a.sort() >>> a”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 30 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What type of data is: a=[(1,1),(2,4),(3,9)]?
Correct Answer: Option B — List of tuples
Detailed Academic Explanation:
List of tuples is the correct answer to “What type of data is: a=[(1,1),(2,4),(3,9)]”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 31 of 40
★ FPSC
★ PPSC
★ 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
Correct Answer: Option A — a(i=4, j=7)
Detailed Academic Explanation:
a(i=4, j=7) is the correct answer to “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”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 32 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Tuples can't be made keys of a dictionary.
Correct Answer: Option B — False
Detailed Academic Explanation:
False is the correct answer to “Tuples can't be made keys of a dictionary.”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 33 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following Python code? >>> a=(0,1,2,3,4) >>> b=slice(0,2) >>> a[b]
Correct Answer: Option C — (0,1)
Detailed Academic Explanation:
(0,1) is the correct answer to “What will be the output of the following Python code? >>> a=(0,1,2,3,4) >>> b=slice(0,2) >>> a[b]”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 34 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Is the following Python code valid? >>> a,b,c=1,2,3 >>> a,b,c
Correct Answer: Option C — Yes, (1,2,3) is printed
Detailed Academic Explanation:
Yes, (1,2,3) is printed is the correct answer to “Is the following Python code valid? >>> a,b,c=1,2,3 >>> a,b,c”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 35 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following Python code? >>>t = (1, 2) >>>2 * t
Correct Answer: Option A — (1, 2, 1, 2)
Detailed Academic Explanation:
(1, 2, 1, 2) is the correct answer to “What will be the output of the following Python code? >>>t = (1, 2) >>>2 * t”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 36 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following Python code? >>> a,b=6,7 >>> a,b=b,a >>> a,b
Correct Answer: Option C — (7,6)
Detailed Academic Explanation:
(7,6) is the correct answer to “What will be the output of the following Python code? >>> a,b=6,7 >>> a,b=b,a >>> a,b”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 37 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
If a=(1,2,3,4), a[1:-1] is . . . . . . . .
Correct Answer: Option D — (2,3)
Detailed Academic Explanation:
(2,3) is the correct answer to “If a=(1,2,3,4), a[1:-1] is . . . . . . . .”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 38 of 40
★ FPSC
★ PPSC
★ 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)
Correct Answer: Option C — 33
Detailed Academic Explanation:
33 is the correct answer to “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)”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 39 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following Python code? d = {"john":40, "peter":45} d["john"]
Correct Answer: Option A — 40
Detailed Academic Explanation:
40 is the correct answer to “What will be the output of the following Python code? d = {"john":40, "peter":45} d["john"]”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
Question 40 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following Python code? >>> a=(2,3,4) >>> sum(a,3)
Correct Answer: Option C — 12
Detailed Academic Explanation:
12 is the correct answer to “What will be the output of the following Python code? >>> a=(2,3,4) >>> sum(a,3)”. This question is standard in competitive examination syllabi for Tuples In Python.
💡Key Conceptual Anchor:Tuples In Python
✓Link copied to clipboard
Continue Your Practice
Advance Html — Part 1
Master the next curriculum module with 40 exam-standard MCQs.
💡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.