Tuesday, 14 April 2026
Lecture 11 of 73 · Unit 1
Unit 1 ⏳ Pending

List and tuple operations PYQ

What We'll Learn

A quick overview of today's lecture

List and tuple operations PYQ PYQ PRACTICE SCOPE: List and tuple operations. Concept ID: U1_LIST_TUPLE_OPS. Use only previous-year questions whose concept_ids include U1_LIST_TUPLE_OPS.
Key things we'll cover
List and tuple operations
PYQ references used by both prompts 40 included 0 excluded
Flagged questions are excluded from both Study Notes and PPT references until corrected in Paper Analyzer.
Included ID 6473 · 2021 · 1 mark(s)
Consider a declaration L = (1, 'Python', '3.14'). Which of the following represents the data type of L? a) list b) tuple c) dictionary d) string
Revision of Python & Core Concepts → List and tuple operations
Included ID 6474 · 2021 · 1 mark(s)
Given a Tuple tup1= (10, 20, 30, 40, 50, 60, 70, 80, 90). What will be the output of print(tup1[3:7:2])? a) (40,50,60,70,80) b) (40,50,60,70) c) [40,60] d) (40,60)
Revision of Python & Core Concepts → List and tuple operations
Included ID 6479 · 2021 · 1 mark(s)
The return type of the input() function is: a) string b) integer c) list d) tuple
Revision of Python & Core Concepts → List and tuple operations
Included ID 6481 · 2021 · 1 mark(s)
Consider a tuple tup1 = (10, 15, 25, 30). Identify the statement that will result in an error. a) print(tup1[2]) b) tup1[2] = 20 c) print(min(tup1)) d) print(len(tup1))
Revision of Python & Core Concepts → List and tuple operations
Included ID 6499 · 2021 · 1 mark(s)
Identify the output of the following Python statements. x = [[10.0, 11.0, 12.0],[13.0, 14.0, 15.0]] y = x[1][2] print(y) a) 12.0 b) 13.0 c) 14.0 d) 15.0
Revision of Python & Core Concepts → List and tuple operations
Included ID 6502 · 2021 · 1 mark(s)
Identify the output of the following Python statements. lst1 = [10, 15, 20, 25, 30] lst1.insert(3, 4) lst1.insert(2, 3) print(lst1[-5]) a) 2 b) 3 c) 4 d) 20
Revision of Python & Core Concepts → List and tuple operations
Included ID 6520 · 2021 · 1 mark(s)
What will be the output of the following code? tup1 = (1,2,[1,2],3) tup1[2][1]=3.14 print(tup1) a) (1,2,[3.14,2],3) b) (1,2,[1,3.14],3) c) (1,2,[1,2],3.14) d) Error Message
Revision of Python & Core Concepts → List and tuple operations
Included ID 6089 · 2023 · 1 mark(s)
Given the following Tuple Tup= (10, 20, 30, 50) Which of the following statements will result in an error ? (a) print (Tup[0]) (b) Tup.insert (2,3) (c) print (Tup[1:2]) (d) print(len(Tup) )
Revision of Python & Core Concepts → List and tuple operations
Included ID 6093 · 2023 · 1 mark(s)
Fill in the blank. ________ function is used to arrange the elements of a list in ascending order. (a) sort() (b) arrange () (c) ascending() (d) asort()
Revision of Python & Core Concepts → List and tuple operations
Included ID 6101 · 2023 · 1 mark(s)
Which function returns the sum of all elements of a list ? (a) count () (b) sum() (c) total() (d) add()
Revision of Python & Core Concepts → List and tuple operations
Included ID 6290 · 2023 · 1 mark(s)
Fill in the blank : ________ is not a valid built-in function for list manipulations. (a) count() (b) length() (c) append() (d) extend()
Revision of Python & Core Concepts → List and tuple operations
Included ID 6577 · 2023 · 1 mark(s)
Which of the following statement(s) would give an error during execution of the following code? tup = (20,30,40,50,80,79) print(tup) #Statement 1 print(tup[3]+50) #Statement 2 print(max(tup)) #Statement 3 tup[4]=80 #Statement 4 a) Statement 1 b) Statement 2 c) Statement 3 d) Statement 4
Revision of Python & Core Concepts → List and tuple operations
Included ID 6585 · 2023 · 1 mark(s)
Assertion(A): List is an immutable data type. Reasoning(R): When an attempt is made to update the value of an immutable variable, the old variable is destroyed and a new variable is created by the same name in memory. a) Both A and R are true and R is the correct explanation for A b) Both A and R are true and R is not the correct explanation for A c) A is True but R is False d) A is false but R is True
Revision of Python & Core Concepts → List and tuple operations
Included ID 6108 · 2023 · 2 mark(s)
(a) Given is a Python list declaration : Listofnames=["Ankit", "Ashish", "Rajan", "Rajat"] Write the output of : print (Listofnames [-1:-4:-1]) (b) Consider the following tuple declaration : tupl=(10,20,30,40) Write the output of : print (tupl.index(20))
Revision of Python & Core Concepts → List and tuple operations
Included ID 6593 · 2023 · 2 mark(s)
Write the Python statement for each of the following tasks using BUILT-IN functions/methods only: (i) To insert an element 200 at the third position, in the list L1. (ii) To check whether a string named message ends with a full stop / period or not.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6133 · 2024 · 1 mark(s)
What will be the output of the following code ? L=[10,20,30,40,50] print(L[2:4]) (A) [20,30] (B) [10,20,30,40] (C) [30,40] (D) [30,40,50]
Revision of Python & Core Concepts → List and tuple operations
Included ID 6138 · 2024 · 1 mark(s)
Fill in the blank: ________ is the method of a list which is used to add an element in the end of the existing list. (A) append() (B) add() (C) insert() (D) extend()
Revision of Python & Core Concepts → List and tuple operations
Included ID 6327 · 2024 · 1 mark(s)
State True or False : "In Python, tuple is a mutable data type".
Revision of Python & Core Concepts → List and tuple operations
Included ID 6339 · 2024 · 1 mark(s)
For the following Python statement : N = (25) What shall be the type of N ? (A) Integer (B) String (C) Tuple (D) List
Revision of Python & Core Concepts → List and tuple operations
Included ID 6616 · 2024 · 1 mark(s)
What will be the output of the following code? tuple1 = (1, 2, 3) tuple2 = tuple1 tuple1 += (4,) print(tuple1 == tuple2) a) True b) False c) tuple1 d) Error
Revision of Python & Core Concepts → List and tuple operations
Included ID 6618 · 2024 · 1 mark(s)
What does the list.remove(x) method do in Python? a) Removes the element at index x from the list b) Removes the first occurrence of value x from the list c) Removes all occurrences of value x from the list d) Removes the last occurrence of value x from the list
Revision of Python & Core Concepts → List and tuple operations
Included ID 6634 · 2024 · 1 mark(s)
If L1=[1,2,3,2,1,2,4,2, . . . ], and L2=[10,20,30, . . .], answer using built-in functions only. Write a statement to count the occurrences of 4 in L1.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6635 · 2024 · 1 mark(s)
If L1=[1,2,3,2,1,2,4,2, . . . ], and L2=[10,20,30, . . .], answer using built-in functions only. Write a statement to sort the elements of list L1 in ascending order.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6636 · 2024 · 1 mark(s)
If L1=[1,2,3,2,1,2,4,2, . . . ], and L2=[10,20,30, . . .], answer using built-in functions only. Write a statement to insert all the elements of L2 at the end of L1.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6637 · 2024 · 1 mark(s)
If L1=[1,2,3,2,1,2,4,2, . . . ], and L2=[10,20,30, . . .], answer using built-in functions only. Write a statement to reverse the elements of list L2.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6153 · 2024 · 2 mark(s)
Write the output of the following Python code: List=[10,20,30] List.extend([40,50]) print(List) print(List.index(40)) print(List.count(10))
Revision of Python & Core Concepts → List and tuple operations
Included ID 6351 · 2024 · 2 mark(s)
(a) Write the Python statement for each of the following tasks using BUILT-IN functions/methods only : (i) To delete an element 10 from the list lst. (ii) To replace the string "This" with "That" in the string str1.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6173 · 2025 · 1 mark(s)
State True or False: "A Python List must always contain all its elements of same data type."
Revision of Python & Core Concepts → List and tuple operations
Included ID 6178 · 2025 · 1 mark(s)
Consider the statements given below and then choose the correct output from the given options: L=['TIC', 'TAC'] print(L[::-1]) (A) ['crT', 'caT'] (B) ['TIc', 'TAC'] (C) ['car', 'CIT'] (D) ['TAC', 'TIC']
Revision of Python & Core Concepts → List and tuple operations
Included ID 6369 · 2025 · 1 mark(s)
State if following statement is True or False: If T is a tuple and L is a list, then T+L is a valid statement in Python.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6373 · 2025 · 1 mark(s)
What will be the output of the following code segment ? p=list("Session 2024–25") print(p[10:20:])
Revision of Python & Core Concepts → List and tuple operations
Included ID 6376 · 2025 · 1 mark(s)
Which of the following list methods accepts exactly 2 parameters ? (A) append() (B) extend() (C) insert() (D) pop()
Revision of Python & Core Concepts → List and tuple operations
Included ID 6662 · 2025 · 1 mark(s)
What will be the output of the following code? L = ["India", "Incredible", "Bharat"] print(L[1][0] + L[2][-1]) a) IT b) it c) It d) iT
Revision of Python & Core Concepts → List and tuple operations
Included ID 6680 · 2025 · 1 mark(s)
Assertion (A): The expression (1, 2, 3, 4).append(5) in Python will modify the original sequence datatype. Reason (R): The append() method adds an element to the end of a list and modifies the list in place. a) Both A and R are True and R is the correct explanation for A. b) Both A and R are True and R is not the correct explanation for A. c) A is True but R is False. d) A is False but R is True.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6685 · 2025 · 2 mark(s)
A. (Answer using Python built-in methods/functions only): I. Write a statement to find the index of the first occurrence of the substring "good" in a string named review. II. Write a statement to sort the elements of list L1 in descending order.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6698 · 2025 · 3 mark(s)
B. Predict the output of the following Python code: wildlife_sanctuary = ["Kaziranga", "Ranthambhore", "Jim Corbett", "Sundarbans", "Periyar", "Gir", "Bandipur"] output = [ ] for sanctuary in wildlife_sanctuary: if sanctuary[-1] in 'aeiou': output.append(sanctuary[0].upper()) print(output)
Revision of Python & Core Concepts → List and tuple operations
Included ID 6221 · 2026 · 1 mark(s)
What is the output of the following code snippet ? s = 'War and Peace by Leo Tolstoy' print(s.partition("by")) (A) ('War and Peace ', 'by', ' Leo Tolstoy') (B) ['War and Peace ', 'by', ' Leo Tolstoy'] (C) ('War and Peace ', ' Leo Tolstoy') (D) ['War and Peace ', ' Leo Tolstoy']
Revision of Python & Core Concepts → List and tuple operations
Included ID 6223 · 2026 · 1 mark(s)
What will be the output of the following code snippet ? t = tuple('tuple') t2 = t[2], t += t2 print(t) (A) ('tuple') (B) ('tuple','p') (C) ('t', 'u', 'p', 'l', 'e', 'p') (D) ('t', 'u', 'p', 'l', 'e')
Revision of Python & Core Concepts → List and tuple operations
Included ID 6237 · 2026 · 1 mark(s)
Assertion (A) : [1,2,3]+'123' is an invalid expression in Python. Reason (R) : In Python, a list cannot be concatenated with a string. (A) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation for Assertion (A). (B) Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation for Assertion (A). (C) Assertion (A) is true, but Reason (R) is false. (D) Assertion (A) is false, but Reason (R) is true.
Revision of Python & Core Concepts → List and tuple operations
Included ID 6240 · 2026 · 2 mark(s)
Write a Python statement to perform the following tasks : (USE BUILT_IN FUNCTIONS / METHODS ONLY) (i) To create a new list L1 containing the elements of list L arranged in ascending order, without modifying list L. (ii) A statement to check whether the given character, ch is an alphabet or a number.
Revision of Python & Core Concepts → List and tuple operations
.txt