Practice Python Lists MCQs with Answers provided below. The MCQ Questions for [current-page:node:field_class] Lists [current-page:node:field_subject] with answers and follow the latest [current-page:node:field_board]/ NCERT and KVS patterns. Refer to more Chapter-wise MCQs for [current-page:node:field_board] [current-page:node:field_class] [current-page:node:field_subject] and also download more latest study material for all subjects
MCQ for [current-page:node:field_class] [current-page:node:field_subject] Lists
[current-page:node:field_class] [current-page:node:field_subject] students should review the 50 questions and answers to strengthen understanding of core concepts in Lists
Lists MCQ Questions [current-page:node:field_class] [current-page:node:field_subject] with Answers
Question. Which of the following commands will create a list?
(a) \( list1 = list() \)
(b) \( list1 = [] \)
(c) \( list1 = list([1, 2, 3]) \)
(d) all of the mentioned
Answer: d
Explanation: Execute in the shell to verify
Question. What is the output when we execute list(“hello”)?
(a) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
(b) [‘hello’]
(c) [‘llo’]
(d) [‘olleh’]
Answer: a
Explanation: Execute in the shell to verify.
Question. Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
(a) 5
(b) 4
(c) None
(d) Error
Answer: a
Explanation: Execute in the shell and verify.
Question. Suppose list1 is [2445,133,12454,123], what is max(list1)?
(a) 2445
(b) 133
(c) 12454
(d) 123
Answer: c
Explanation: Max returns the maximum element in the list.
Question. Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
(a) 3
(b) 5
(c) 25
(d) 1
Answer: d
Explanation: Min returns the minimum element in the list.
Question. Suppose list1 is [1, 5, 9], what is sum(list1)?
(a) 1
(b) 9
(c) 15
(d) Error
Answer: c
Explanation: Sum returns the sum of all elements in the list.
Question. To shuffle the list(say list1) what function do we use?
(a) list1.shuffle()
(b) shuffle(list1)
(c) random.shuffle(list1)
(d) random.shuffleList(list1)
Answer: c
Explanation: Execute in the shell to verify.
Question. Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?
(a) print(list1[0])
(b) print(list1[:2])
(c) print(list1[:-2])
(d) all of the mentioned
Answer: d
Explanation: Slicing is allowed in lists just as in the case of strings.
Question. Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?
(a) Error
(b) None
(c) 25
(d) 2
Answer: c
Explanation: -1 corresponds to the last index in the list.
Question. Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]?
(a) [2, 33, 222, 14]
(b) Error
(c) 25
(d) [25, 14, 222, 33, 2]
Answer: a
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. >>>names = ['Amir', 'Bear', 'Charlton', 'Daman']
2. >>>print(names[-1][-1])
(a) A
(b) Daman
(c) Error
(d) n
Answer: d
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. names1 = ['Amir', 'Bear', 'Charlton', 'Daman']
2. names2 = names1
3. names3 = names1[:]
4.
5. names2[0] = 'Alice'
6. names3[1] = 'Bob'
7.
8. sum = 0
9. for ls in (names1, names2, names3):
10. if ls[0] == 'Alice':
11. sum += 1
12. if ls[1] == 'Bob':
13. sum += 10
14.
15.print sum
(a) 11
(b) 12
(c) 21
(d) 22
Answer: b
Explanation: When assigning names1 to names2, we create a second reference to the same list. Changes to names2 affect names1. When assigning the slice of all elements in names1 to names3, we are creating a full copy of names1 which can be modified independently.
Question. Suppose list1 is [1, 3, 2], What is list1 * 2?
(a) [2, 6, 4]
(b) [1, 3, 2, 1, 3]
(c) [1, 3, 2, 1, 3, 2]
(d) [1, 3, 2, 3, 2, 1]
Answer: c
Explanation: Execute in the shell and verify.
Question. Suppose list1 = [0.5 * x for x in range(0, 4)], list1 is:
(a) [0, 1, 2, 3]
(b) [0, 1, 2, 3, 4]
(c) [0.0, 0.5, 1.0, 1.5]
(d) [0.0, 0.5, 1.0, 1.5, 2.0]
Answer: c
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. >>>list1 = [11, 2, 23]
2. >>>list2 = [11, 2, 2]
3. >>>list1 < list2 is
(a) True
(b) False
(c) Error
(d) None
Answer: b
Explanation: Elements are compared one by one.
Question. To add a new element to a list we use which command?
(a) list1.add(5)
(b) list1.append(5)
(c) list1.addLast(5)
(d) list1.addEnd(5)
Answer: b
Explanation: We use the function append to add an element to the list.
Question. To insert 5 to the third position in list1, we use which command?
(a) list1.insert(3, 5)
(b) list1.insert(2, 5)
(c) list1.add(3, 5)
(d) list1.append(3, 5)
Answer: b
Explanation: Execute in the shell to verify.
Question. To remove string “hello” from list1, we use which command?
(a) list1.remove(“hello”)
(b) list1.remove(hello)
(c) list1.removeAll(“hello”)
(d) list1.removeOne(“hello”)
Answer: a
Explanation: Execute in the shell to verify.
Question. Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?
(a) 0
(b) 1
(c) 4
(d) 2
Answer: d
Explanation: Execute help(list.index) to get details.
Question. Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1.count(5)?
(a) 0
(b) 4
(c) 1
(d) 2
Answer: d
Explanation: Execute in the shell to verify.
Question. Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.reverse()?
(a) [3, 4, 5, 20, 5, 25, 1, 3]
(b) [1, 3, 3, 4, 5, 5, 20, 25]
(c) [25, 20, 5, 5, 4, 3, 3, 1]
(d) [3, 1, 25, 5, 20, 5, 4, 3]
Answer: d
Explanation: Execute in the shell to verify.
Question. Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.extend([34, 5])?
(a) [3, 4, 5, 20, 5, 25, 1, 3, 34, 5]
(b) [1, 3, 3, 4, 5, 5, 20, 25, 34, 5]
(c) [25, 20, 5, 5, 4, 3, 3, 1, 34, 5]
(d) [1, 3, 4, 5, 20, 5, 25, 3, 34, 5]
Answer: a
Explanation: Execute in the shell to verify.
Question. Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop(1)?
(a) [3, 4, 5, 20, 5, 25, 1, 3]
(b) [1, 3, 3, 4, 5, 5, 20, 25]
(c) [3, 5, 20, 5, 25, 1, 3]
(d) [1, 3, 4, 5, 20, 5, 25]
Answer: c
Explanation: pop() removes the element at the position specified in the parameter.
Question. Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop()?
(a) [3, 4, 5, 20, 5, 25, 1]
(b) [1, 3, 3, 4, 5, 5, 20, 25]
(c) [3, 5, 20, 5, 25, 1, 3]
(d) [1, 3, 4, 5, 20, 5, 25]
Answer: a
Explanation: pop() by default will remove the last element.
Question. What will be the output of the following Python code?
1. >>>"Welcome to Python".split()
(a) [“Welcome”, “to”, “Python”]
(b) (“Welcome”, “to”, “Python”)
(c) {“Welcome”, “to”, “Python”}
(d) “Welcome”, “to”, “Python”
Answer: a
Explanation: split() function returns the elements in a list.
Question. What will be the output of the following Python code?
1. >>>list("a#b#c#d".split('#'))
(a) [‘a’, ‘b’, ‘c’, ‘d’]
(b) [‘a b c d’]
(c) [‘a#b#c#d’]
(d) [‘abcd’]
Answer: a
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. myList = [1, 5, 5, 5, 5, 1]
2. max = myList[0]
3. indexOfMax = 0
4. for i in range(1, len(myList)):
5. if myList[i] > max:
6. max = myList[i]
7. indexOfMax = i
8.
9. >>>print(indexOfMax)
(a) 1
(b) 2
(c) 3
(d) 4
Answer: a
Explanation: First time the highest number is encountered is at index 1.
Question. What will be the output of the following Python code?
1. myList = [1, 2, 3, 4, 5, 6]
2. for i in range(1, 6):
3. myList[i - 1] = myList[i]
4.
5. for i in range(0, 6):
6. print(myList[i], end = " ")
(a) 2 3 4 5 6 1
(b) 6 1 2 3 4 5
(c) 2 3 4 5 6 6
(d) 1 1 2 3 4 5
Answer: c
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. >>>list1 = [1, 3]
2. >>>list2 = list1
3. >>>list1[0] = 4
4. >>>print(list2)
(a) [1, 3]
(b) [4, 3]
(c) [1, 4]
(d) [1, 3, 4]
Answer: b
Explanation: Lists should be copied by executing [:] operation.
Question. What will be the output of the following Python code?
1. def f(values):
2. values[0] = 44
3.
4. v = [1, 2, 3]
5. f(v)
6. print(v)
(a) [1, 44]
(b) [1, 2, 3, 44]
(c) [44, 2, 3]
(d) [1, 2, 3]
Answer: c
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. def f(i, values = []):
2. values.append(i)
3. return values
4.
5. f(1)
6. f(2)
7. v = f(3)
8. print(v)
(a) [1] [2] [3]
(b) [1] [1, 2] [1, 2, 3]
(c) [1, 2, 3]
(d) 1 2 3
Answer: c
Explanation: Execute in the shell to verify
Question. What will be the output of the following Python code?
1. names1 = ['Amir', 'Bala', 'Chales']
2.
3. if 'amir' in names1:
4. print(1)
5. else:
6. print(2)
(a) None
(b) 1
(c) 2
(d) Error
Answer: c
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. names1 = ['Amir', 'Bala', 'Charlie']
2. names2 = [name.lower() for name in names1]
3.
4. print(names2[2][0])
(a) None
(b) a
(c) b
(d) c
Answer: d
Explanation: List Comprehension are a shorthand for creating new lists.
Question. What will be the output of the following Python code?
1. numbers = [1, 2, 3, 4]
2.
3. numbers.append([5,6,7,8])
4.
5. print(len(numbers))
(a) 4
(b) 5
(c) 8
(d) 12
Answer: b
Explanation: A list is passed in append so the length is 5.
Question. To which of the following the “in” operator can be used to check if an item is in it?
(a) Lists
(b) Dictionary
(c) Set
(d) All of the mentioned
Answer: d
Explanation: In can be used in all data structures.
Question. What will be the output of the following Python code?
1. list1 = [1, 2, 3, 4]
2. list2 = [5, 6, 7, 8]
3.
4. print(len(list1 + list2))
(a) 2
(b) 4
(c) 5
(d) 8
Answer: d
Explanation: + appends all the elements individually into a new list.
Question. What will be the output of the following Python code?
1. def addItem(listParam):
2. listParam += [1]
3.
4. mylist = [1, 2, 3, 4]
5. addItem(mylist)
6. print(len(mylist))
(a) 1
(b) 4
(c) 5
(d) 8
Answer: c
Explanation: + will append the element to the list.
Question. What will be the output of the following Python code?
1. def increment_items(L, increment):
2. i = 0
3. while i < len(L):
4. L[i] = L[i] + increment
5. i = i + 1
6.
7. values = [1, 2, 3]
8. print(increment_items(values, 2))
9. print(values)
(a) None [3, 4, 5]
(b) None [1, 2, 3]
(c) [3, 4, 5] [1, 2, 3]
(d) [3, 4, 5] None
Answer: a
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. def example(L):
2. ''' (list) -> list
3. '''
4. i = 0
5. result = []
6. while i < len(L):
7. result.append(L[i])
8. i = i + 3
9. return result
(a) Return a list containing every third item from L starting at index 0
(b) Return an empty list
(c) Return a list containing every third index from L starting at index 0
(d) Return a list containing the items from L starting from index 0, omitting every third item
Answer: a
Explanation: Run the code to get a better understanding with many arguments.
Question. What will be the output of the following Python code?
1. veggies = ['carrot', 'broccoli', 'potato', 'asparagus']
2. veggies.insert(veggies.index('broccoli'), 'celery')
3. print(veggies)
(a) [‘carrot’, ‘celery’, ‘broccoli’, ‘potato’, ‘asparagus’]
(b) [‘carrot’, ‘celery’, ‘potato’, ‘asparagus’]
(c) [‘carrot’, ‘broccoli’, ‘celery’, ‘potato’, ‘asparagus’]
(d) [‘celery’, ‘carrot’, ‘broccoli’, ‘potato’, ‘asparagus’]
Answer: a
Explanation: Execute in the shell to verify.
Python Questions and Answers – Lists – 5
Question. What will be the output of the following Python code?
1. >>>m = [[x, x + 1, x + 2] for x in range(0, 3)]
(a) [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
(b) [[0, 1, 2], [1, 2, 3], [2, 3, 4]]
(c) [1, 2, 3, 4, 5, 6, 7, 8, 9]
(d) [0, 1, 2, 1, 2, 3, 2, 3, 4]
Answer: b
Explanation: Execute in the shell to verify.
Question. How many elements are in m?
1. m = [[x, y] for x in range(0, 4) for y in range(0, 4)]
(a) 8
(b) 12
(c) 16
(d) 32
Answer: c
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. values = [[3, 4, 5, 1], [33, 6, 1, 2]]
2.
3. v = values[0][0]
4. for row in range(0, len(values)):
5. for column in range(0, len(values[row])):
6. if v < values[row][column]:
7. v = values[row][column]
8.
9. print(v)
(a) 3
(b) 5
(c) 6
(d) 33
Answer: d
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. values = [[3, 4, 5, 1], [33, 6, 1, 2]]
2.
3. v = values[0][0]
4. for lst in values:
5. for element in lst:
6. if v > element:
7. v = element
8.
9. print(v)
(a) 1
(b) 3
(c) 5
(d) 6
Answer: a
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. values = [[3, 4, 5, 1 ], [33, 6, 1, 2]]
2.
3. for row in values:
4. row.sort()
5. for element in row:
6. print(element, end = " ")
7. print()
(a) The program prints two rows 3 4 5 1 followed by 33 6 1 2
(b) The program prints on row 3 4 5 1 33 6 1 2
(c) The program prints two rows 3 4 5 1 followed by 33 6 1 2
(d) The program prints two rows 1 3 4 5 followed by 1 2 6 33
Answer: d
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. matrix = [[1, 2, 3, 4],
2. [4, 5, 6, 7],
3. [8, 9, 10, 11],
4. [12, 13, 14, 15]]
5.
6. for i in range(0, 4):
7. print(matrix[i][1], end = " ")
(a) 1 2 3 4
(b) 4 5 6 7
(c) 1 3 8 12
(d) 2 5 9 13
Answer: d
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. def m(list):
2. v = list[0]
3. for e in list:
4. if v < e: v = e
5. return v
6.
7. values = [[3, 4, 5, 1], [33, 6, 1, 2]]
8.
9. for row in values:
10. print(m(row), end = " ")
(a) 3 33
(b) 1 1
(c) 5 6
(d) 5 33
Answer: d
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. data = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
2.
3. print(data[1][0][0])
(a) 1
(b) 2
(c) 4
(d) 5
Answer: d
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. data = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
2.
3. def ttt(m):
4. v = m[0][0]
5.
6. for row in m:
7. for element in row:
8. if v < element: v = element
9.
10. return v
11.
12.print(ttt(data[0]))
(a) 1
(b) 2
(c) 4
(d) 5
Answer: c
Explanation: Execute in the shell to verify.
Question. What will be the output of the following Python code?
1. points = [[1, 2], [3, 1.5], [0.5, 0.5]]
2. points.sort()
3. print(points)
(a) [[1, 2], [3, 1.5], [0.5, 0.5]]
(b) [[3, 1.5], [1, 2], [0.5, 0.5]]
(c) [[0.5, 0.5], [1, 2], [3, 1.5]]
(d) [[0.5, 0.5], [3, 1.5], [1, 2]]
Answer: c
Explanation: Execute in the shell to verify.
MCQs for Lists [current-page:node:field_subject] [current-page:node:field_class]
Students can use these MCQs for Lists to quickly test their knowledge of the chapter. These multiple-choice questions have been designed as per the latest syllabus for [current-page:node:field_class] [current-page:node:field_subject] released by [current-page:node:field_board]. Our expert teachers suggest that you should practice daily and solving these objective questions of Lists to understand the important concepts and better marks in your school tests.
Lists NCERT Based Objective Questions
Our expert teachers have designed these [current-page:node:field_subject] MCQs based on the official NCERT book for [current-page:node:field_class]. We have identified all questions from the most important topics that are always asked in exams. After solving these, please compare your choices with our provided answers. For better understanding of Lists, you should also refer to our NCERT solutions for [current-page:node:field_class] [current-page:node:field_subject] created by our team.
Online Practice and Revision for Lists [current-page:node:field_subject]
To prepare for your exams you should also take the [current-page:node:field_class] [current-page:node:field_subject] MCQ Test for this chapter on our website. This will help you improve your speed and accuracy and its also free for you. Regular revision of these [current-page:node:field_subject] topics will make you an expert in all important chapters of your course.
FAQs
You can get most exhaustive Python Lists MCQs with Answers for free on StudiesToday.com. These MCQs for are updated for the 2026-27 academic session as per examination standards.
Yes, our Python Lists MCQs with Answers include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the paper is now competency-based.
By solving our Python Lists MCQs with Answers, students can improve their accuracy and speed which is important as objective questions provide a chance to secure 100% marks in the .
Yes, MCQs for have answer key and brief explanations to help students understand logic behind the correct option as its important for 2026 competency-focused exams.
Yes, you can also access online interactive tests for Python Lists MCQs with Answers on StudiesToday.com as they provide instant answers and score to help you track your progress in .