Edzy
AI TutorResourcesToolsCompareBuy
SearchDownload AppLogin
Edzy

Edzy for Classes 6-12

Edzy is a personal AI tutor for CBSE and State Board students, with curriculum-aligned guidance, practice, revision, and study plans that adapt to each learner.

  • Email: always@edzy.ai
  • Phone: +91 96256 68472
  • WhatsApp: +91 96256 68472
  • Address: Sector 63, Gurgaon, Haryana

Follow Edzy

Browse by Class

  • CBSE Class 6
  • CBSE Class 7
  • CBSE Class 8
  • CBSE Class 9
  • CBSE Class 10
  • CBSE Class 11
  • CBSE Class 12
Explore the CBSE resource hub

Explore Edzy

  • Study Resources
  • Free Study Tools
  • Best Apps for Board Exams
  • Edzy vs ChatGPT
  • About Us
  • Why We Built Edzy
  • Blog
  • CBSE AI Tutor

Support & Legal

  • Help & FAQs
  • Accessibility
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
  • Cookie Policy
  • Site Directory

© 2026 Edzy. All rights reserved.

Curriculum-aligned learning paths for students in Classes 6-12.

CBSE
Class 11
Computer Science
Computer Science
Lists
Question Bank

Question Bank - Lists

Practice Hub

Question Bank: Lists

This chapter introduces lists, a fundamental data type in Python that can hold multiple items of varying types, allowing for efficient organization of data.

Structured practice

Question Bank - Lists

Q1.

What is the main feature of a list in Python?

Single Answer MCQ
Q-00067898
View explanation
Q2.

Which of the following correctly initializes a list containing mixed data types?

Single Answer MCQ
Q-00067899
View explanation
Q3.

How is the first element of a list accessed in Python?

Single Answer MCQ
Q-00067900
View explanation
Q4.

What will the code list = [0, 1, 2, 3]; print(list[2]) output?

Single Answer MCQ
Q-00067901
View explanation
Q5.

Which of the following is a correct way to create a nested list?

Single Answer MCQ
Q-00067902
View explanation
Q6.

In Python, which of the following will raise an IndexError?

Single Answer MCQ
Q-00067903
View explanation
Q7.

What does the following code return? list = ['x', 'y', 'z']; print(list[-1])

Single Answer MCQ
Q-00067904
View explanation
Q8.

Which of these operations can be performed on a list?

Single Answer MCQ
Q-00067905
View explanation
Q9.

What will the following code output? list = [1, 2, 3]; list.append(4); print(list)

Single Answer MCQ
Q-00067906
View explanation
Q10.

What does the expression 'len(list)' return?

Single Answer MCQ
Q-00067907
View explanation
Q11.

Given the list 'nested = [[1, 2], [3, 4]]', how would you access the number '4'?

Single Answer MCQ
Q-00067908
View explanation
Q12.

If you have a list 'alpha = [5, 10, 15]' and execute 'alpha[1:3]', what will be the output?

Single Answer MCQ
Q-00067909
View explanation
Q13.

What happens when you execute 'list = [1, 2, 3]; list[0] = 10'?

Single Answer MCQ
Q-00067910
View explanation
Q14.

Which of the following correctly removes an element from a list?

Single Answer MCQ
Q-00067911
View explanation
Q15.

What does the statement 'list2 = list1' do in Python?

Single Answer MCQ
Q-00067928
View explanation
Q16.

Which method is used to make a distinct copy of a list using slicing?

Single Answer MCQ
Q-00067929
View explanation
Q17.

What will be the output of 'list1 = [1,2,3]; list2 = list(list1); list2.append(4); print(list1)'?

Single Answer MCQ
Q-00067930
View explanation
Q18.

What is the purpose of the 'copy()' function from the copy module?

Single Answer MCQ
Q-00067931
View explanation
Q19.

Which of the following will directly modify the original list when passed to a function?

Single Answer MCQ
Q-00067932
View explanation
Q20.

Which of the following statements is FALSE about list copying in Python?

Single Answer MCQ
Q-00067933
View explanation
Q21.

What happens if you modify an element in a shallow copy of a list?

Single Answer MCQ
Q-00067934
View explanation
Q22.

If you want to copy a list that contains nested lists, which method will ensure the deep copy?

Single Answer MCQ
Q-00067935
View explanation
Q23.

What is the effect of modifying a list inside a function where the list was passed as an argument?

Single Answer MCQ
Q-00067936
View explanation
Q24.

Which of the following methods would you use to assign a copy of a list that maintains the changes separately?

Single Answer MCQ
Q-00067937
View explanation
Q25.

Which of the following indicates that two lists are the same object in memory?

Single Answer MCQ
Q-00067938
View explanation
Q26.

What is the simplest way to copy a list if it should include only elements, not nested lists?

Single Answer MCQ
Q-00067939
View explanation
Q27.

What Python statement would create a copy of 'data' such that changes to 'copy_data' do not affect 'data'?

Single Answer MCQ
Q-00067940
View explanation
Q28.

What will be the result of the operation list1 + list2 if list1 = [1, 2, 3] and list2 = [4, 5]?

Single Answer MCQ
Q-00067941
View explanation
Q29.

Which method would you use to add an element at the end of a list?

Single Answer MCQ
Q-00067942
View explanation
Q30.

What is the output of the following code: myList = [10, 20, 30]; myList[1] = 40; print(myList)?

Single Answer MCQ
Q-00067943
View explanation
Q31.

How do you access the last element of a list called myList?

Single Answer MCQ
Q-00067944
View explanation
Q32.

What will happen if you try to access a position in a list that is out of range?

Single Answer MCQ
Q-00067945
View explanation
Q33.

Which of the following methods removes an element by its value from a list?

Single Answer MCQ
Q-00067946
View explanation
Q34.

If myList = [5, 10, 15, 20] and you execute myList.pop(), what will be the output?

Single Answer MCQ
Q-00067947
View explanation
Q35.

What is the time complexity of appending an item to a list in Python?

Single Answer MCQ
Q-00067948
View explanation
Q36.

What will be the output of sorted([3, 1, 2])?

Single Answer MCQ
Q-00067949
View explanation
Q37.

What does the extend() method do in regard to lists?

Single Answer MCQ
Q-00067950
View explanation
Q38.

If you execute myList.clear(), what will myList become?

Single Answer MCQ
Q-00067951
View explanation
Q39.

How do you sort a list named myList in descending order in Python?

Single Answer MCQ
Q-00067952
View explanation
Q40.

Which of the following creates a nested list?

Single Answer MCQ
Q-00067953
View explanation
Q41.

What will happen if you use myList.remove(25) when myList = [10, 20, 30]?

Single Answer MCQ
Q-00067954
View explanation
Q42.

What is the primary difference between the pop() and remove() methods of a list?

Single Answer MCQ
Q-00067955
View explanation
Q43.

How can you copy a list named myList to another list named newList?

Single Answer MCQ
Q-00067956
View explanation
Q44.

What is a nested list?

Single Answer MCQ
Q-00067957
View explanation
Q45.

How do you access the second element of a nested list within a list?

Single Answer MCQ
Q-00067958
View explanation
Q46.

In the list example list1 = [1,2,'a','c',[6,7,8],4,9], what will list1[4][1] return?

Single Answer MCQ
Q-00067959
View explanation
Q47.

Which of the following correctly describes how to traverse a nested list?

Single Answer MCQ
Q-00067960
View explanation
Q48.

What will the output be for the command list1 = [[1, 2], [3, 4]] and then executing list1[0][1]?

Single Answer MCQ
Q-00067961
View explanation
Q49.

Which method can be used to access each item in a list?

Single Answer MCQ
Q-00067962
View explanation
Q50.

If a list is created as lst = [1, [2, 3], 4], what would lst[1][0] return?

Single Answer MCQ
Q-00067963
View explanation
Q51.

During list manipulation, what happens when you attempt to access an index that is out of range?

Single Answer MCQ
Q-00067964
View explanation
Q52.

What will be the output of the code: 'for i in range(len(list1)):' where list1 = [10, 20, 30]?

Single Answer MCQ
Q-00067965
View explanation
Q53.

What will the index out of range error in Python indicate when accessing a list?

Single Answer MCQ
Q-00067966
View explanation
Q54.

How can you create a copy of a nested list without affecting the original?

Single Answer MCQ
Q-00067967
View explanation
Q55.

How would you print each item in 'list1' using a while loop?

Single Answer MCQ
Q-00067968
View explanation
Q56.

What type of data structure is returned when accessing a single element of a nested list?

Single Answer MCQ
Q-00067969
View explanation
Q57.

What is the first element of the list 'list1 = [3, 5, 7, 9]'?

Single Answer MCQ
Q-00067970
View explanation
Q58.

Given the nested list lst = [1, [2, [3, 4], 5], 6], what is lst[1][1][0]?

Single Answer MCQ
Q-00067971
View explanation
Q59.

When traversing a list, what does the 'len()' function return?

Single Answer MCQ
Q-00067972
View explanation
Q60.

Which of the following is a correct way to check the length of a nested list?

Single Answer MCQ
Q-00067973
View explanation
Q61.

Which of the following is NOT a valid way to traverse a list?

Single Answer MCQ
Q-00067974
View explanation
Q62.

If a nested list is defined as nested = [[1, 2], [3, 4]], what will nested[0][0] return?

Single Answer MCQ
Q-00067975
View explanation
Q63.

What will happen if you attempt to access list1[5] when list1 = [1, 2, 3]?

Single Answer MCQ
Q-00067976
View explanation
Q64.

What is the main reason to use nested lists in programming?

Single Answer MCQ
Q-00067977
View explanation
Q65.

Using which statement can you combine the functionalities of both 'for' and 'while' loops in a single traversal?

Single Answer MCQ
Q-00067978
View explanation
Q66.

In a list traversal using 'for item in list1:', what will you access?

Single Answer MCQ
Q-00067979
View explanation
Q67.

What is the correct way to initialize an empty list in Python?

Single Answer MCQ
Q-00067980
View explanation
Q68.

If 'list1 = [1, 2, 3, 4]' and you want to print the last element, which index will you use?

Single Answer MCQ
Q-00067981
View explanation
Q69.

In Python, how can you iterate with indices through a list of varying lengths?

Single Answer MCQ
Q-00067982
View explanation
Q70.

What type of error occurs if you try to use list methods on a variable that is not a list?

Single Answer MCQ
Q-00067983
View explanation
Q71.

When modifying a list during traversal, which method is generally safest to avoid skipping elements?

Single Answer MCQ
Q-00067984
View explanation
Q72.

If you want to traverse a nested list, which method is correct?

Single Answer MCQ
Q-00067985
View explanation
Q73.

What will be the output of the function call 'print_list([1, 2, 3])' if defined correctly to print all elements?

Single Answer MCQ
Q-00067986
View explanation
Q74.

Which of the following statements correctly defines a function that accepts a list as an argument?

Single Answer MCQ
Q-00067987
View explanation
Q75.

How do you pass a list to a function in Python?

Single Answer MCQ
Q-00067988
View explanation
Q76.

What happens if you attempt to access an out-of-range index in a list passed to a function?

Single Answer MCQ
Q-00067989
View explanation
Q77.

Which of the following is a valid way to modify a list inside a function?

Single Answer MCQ
Q-00067990
View explanation
Q78.

When passing a list to a function, what is passed by default?

Single Answer MCQ
Q-00067991
View explanation
Q79.

What will happen if you change an element of the list within a function?

Single Answer MCQ
Q-00067992
View explanation
Q80.

What is the term for passing a copy of a list to a function?

Single Answer MCQ
Q-00067993
View explanation
Q81.

Given the function 'def print_elements(lst):', what will 'print_elements([])' output?

Single Answer MCQ
Q-00067994
View explanation
Q82.

What is the output of the following code? def modify_list(lst): lst[0] = 99; modify_list([1, 2, 3]) print([1, 2, 3])

Single Answer MCQ
Q-00067995
View explanation
Q83.

How can you return multiple values from a function that takes a list?

Single Answer MCQ
Q-00067996
View explanation
Q84.

Why is it essential to handle list boundaries when defining functions?

Single Answer MCQ
Q-00067997
View explanation
Q85.

In which scenario would passing a list to a function result in unintended changes?

Single Answer MCQ
Q-00067998
View explanation
Q86.

What does the `len()` function return when applied to a list?

Single Answer MCQ
Q-00067999
View explanation
Q87.

What will `list1.append([5, 6])` do to the list `list1 = [1, 2, 3]`?

Single Answer MCQ
Q-00068000
View explanation
Q88.

Which method will you use to combine elements from another list into an existing list?

Single Answer MCQ
Q-00068001
View explanation
Q89.

What does the `remove()` method do when an element is not found in the list?

Single Answer MCQ
Q-00068002
View explanation
Q90.

How does the `insert(index, element)` method work?

Single Answer MCQ
Q-00068003
View explanation
Q91.

If `list1 = [1, 2, 3]`, what will `list1.pop(1)` return?

Single Answer MCQ
Q-00068004
View explanation
Q92.

How can you find the index of the first occurrence of an element in a list?

Single Answer MCQ
Q-00068005
View explanation
Q93.

What would be the result of executing `list1.count(5)` on `list1 = [1, 2, 3]`?

Single Answer MCQ
Q-00068006
View explanation
Q94.

Which method should be used to clear all elements from a list?

Single Answer MCQ
Q-00068007
View explanation
Q95.

What will the list be after `list1 = [1, 2, 3]; list1.append(4); list1.append(5)`?

Single Answer MCQ
Q-00068008
View explanation
Q96.

What does `list1.pop()` do if `list1 = [10, 20, 30]`?

Single Answer MCQ
Q-00068009
View explanation
Q97.

If `list2 = list1.copy()`, what does `list2` contain?

Single Answer MCQ
Q-00068010
View explanation
Q98.

Regarding list methods, what is a key difference between `append()` and `extend()`?

Single Answer MCQ
Q-00068011
View explanation
Q99.

What will happen if you call `list1.index(4)` on `list1 = [1, 2, 3]`?

Single Answer MCQ
Q-00068012
View explanation
Q100.

Which method may cause an error if an element is not found when invoked?

Single Answer MCQ
Q-00068013
View explanation
Q101.

What will the output be after executing the following code? list1 = [5, 3, 8, 6]; list1.sort(); print(list1)

Single Answer MCQ
Q-00068014
View explanation
Q102.

What does the len() function return when applied to the list myList = [10, 20, 30]?

Single Answer MCQ
Q-00068015
View explanation
Q103.

If myList = [1, 2, 3, 4] and the statement myList.append(5) is executed, what will myList contain?

Single Answer MCQ
Q-00068016
View explanation
Q104.

What will be the output of list1 = [1, 2, 3]; list1.extend([4, 5]); print(list1)?

Single Answer MCQ
Q-00068017
View explanation
Q105.

Which operator can be used to concatenate two lists in Python?

Single Answer MCQ
Q-00068018
View explanation
Q106.

What does myList.pop(0) do when myList = [1, 2, 3]?

Single Answer MCQ
Q-00068019
View explanation
Q107.

If list1 = [10, 20, 30, 40] and you execute list1.insert(2, 25), what will list1 be?

Single Answer MCQ
Q-00068020
View explanation
Q108.

What would be the result of applying myList.remove(20) to myList = [10, 20, 30]?

Single Answer MCQ
Q-00068021
View explanation
Q109.

What is the result of list1 = [1, 2, 3]; sorted(list1)?

Single Answer MCQ
Q-00068023
View explanation
Q110.

After executing list1 = [1, 2, 3]; list1.reverse(); what will list1 contain?

Single Answer MCQ
Q-00068025
View explanation
Q111.

If myList = [10, 20, 30, 40] and you execute myList.extend(myList), what will myList contain?

Single Answer MCQ
Q-00068027
View explanation
Q112.

What is the output of list1 = ['a', 'b', 'c', 'd']; print(list1[1:3])?

Single Answer MCQ
Q-00068029
View explanation
Q113.

Which statement is true regarding a nested list?

Single Answer MCQ
Q-00068031
View explanation
Q114.

If list1 = [1, 2, 3] and you perform the operation list1 *= 2, what will the result be?

Single Answer MCQ
Q-00068033
View explanation
Learn Better On The App
Free learning flow

Learn Without Limits

Access NCERT content for free with a cleaner, faster way to revise every day.

Chapter summaries
Revision tools

Faster access to practice, revision, and daily study flow.

Edzy mobile app preview