PYnative

Python Programming

  • Learn Python
    • Python Tutorials
    • Python Basics
    • Python Interview Q&As
  • Exercises
    • Python Exercises
    • C Programming Exercises
    • C++ Exercises
  • Quizzes
  • Code Editor
    • Online Python Code Editor
    • Online C Compiler
    • Online C++ Compiler
Home » Python » Quizzes » Python List Quiz

Python List Quiz

Updated on: August 26, 2025 | 36 Comments

This Python list quiz provides Multiple Choice Questions(MCQs) to test your understanding of Python lists, from basic creation and access to more advanced manipulation techniques.

Each Multiple Choice Question (MCQ) comes with a clear explanation for its answer, helping you to understand why it’s correct. The quiz covers questions on the below topics.

  • List fundamentals: How to create, access elements (including positive and negative indexing), and understand mutability.
  • Common list operations: Adding, removing, modifying, and searching for elements.
  • List methods: Utilizing powerful built-in methods like append(), extend(), insert(), pop(), remove(), sort(), and reverse().
  • List slicing: Extracting sub-lists efficiently.
  • List comprehensions: A concise way to create lists.

Whether you’re a beginner solidifying your foundational skills or an intermediate programmer looking to sharpen your list manipulation expertise, this quiz provides an excellent opportunity for practice and self-assessment.

Also, See:

  • 15 Python Quizzes: each focusing on a specific topic
  • Python List Exercise
  • The quiz contains 25 questions. There is no time limit.
  • Explanation is provided for each answer.
  • You will get 1 point for each correct answer. Solve 15 correctly to pass the test
  • Read the guide on Python Lists to solve this quiz.

1. How do you check if an element x exists in a list my_list?

 
 
 
 

2. Select all the correct options to join two lists in Python

listOne  =  ['a', 'b', 'c', 'd']
listTwo =  ['e', 'f', 'g']
 
 
 

3. What will be the output of the following Python code?

my_list = [1, 2, 3]
another_list = my_list * 2
print(another_list)
 
 
 
 

4. Which method efficiently removes all items from a list, making it empty?

 
 
 
 

5. What will be the output of the following Python code?

my_list = [1, 2, 3]
my_list.append([4, 5])
print(len(my_list))
 
 
 
 

6. What will be the output of the following list function?

sampleList = [10, 20, 30, 40, 50]
sampleList.append(60)
print(sampleList)

sampleList.append(60)
print(sampleList)
 
 

7. What will be the output of the following Python code?

list1 = [1, 2, 3]
list2 = list1
list2.append(4)
print(list1)
 
 
 
 

8. What will be the output of the following Python code?

my_list = ['c', 'a', 'b']
my_list.sort()
print(my_list)
 
 
 
 

9. What will be the output of the following Python code?

numbers = [10, 20, 30, 40]
del numbers[1]
numbers.remove(40)
print(numbers)
 
 
 
 

10. What will be the output of the following Python code?

items = ["apple", "banana", "cherry"]
index_to_remove = items.index("banana")
removed_item = items.pop(index_to_remove)
print(removed_item)
print(items)
 
 
 
 

11. Given items = ['a', 'b', 'c', 'd'], what does items[-2] return?

 
 
 
 

12. What will be the output of the following Python code?

nums = [1, 2, 3, 2, 1]
print(nums.count(2))
print(nums.index(1))
 
 
 
 

13. What will be the output of the following code?

l = [None] * 10
print(len(l))
 
 
 

14. To get a new sorted list from an existing list original_list without modifying original_list, which function should you use?

 
 
 
 

15. What will be the output of the following Python code?

data = [1, 2, 3, 4, 5]
squared_evens = [x**2 for x in data if x % 2 == 0]
print(squared_evens)
 
 
 
 

16. What will be the output of the following list operation?

aList = [10, 20, 30, 40, 50, 60, 70, 80]
print(aList[:4])
print(aList[3:])
 
 

17. What will be the output of the following Python code?

letters = ['a', 'b', 'c', 'd', 'e']
letters[1:4] = ['x', 'y']
print(letters)
 
 
 
 

18. What will be the output of the following Python code?

matrix = [[1, 2], [3, 4]]
copied_matrix = matrix[:]
copied_matrix[0][0] = 99
print(matrix[0][0])
 
 
 
 

19. What will be the output of the following list function?

sampleList = [10, 20, 30, 40, 50]
sampleList.pop()
print(sampleList)

sampleList.pop(2)
print(sampleList)
 
 
 

20. What will be the output of the following Python code?

my_list = [10, 20, 30]
my_list.insert(1, 15)
print(my_list)
 
 
 
 

21. What will be the output of the following code?

sampleList = [10, 20, 30, 40]
del sampleList[0:6]
print(sampleList)
 
 
 

22. What will be the output of the following code?

aList = [1, 2, 3, 4, 5, 6, 7]
pow2 =  [2 * x for x in aList]
print(pow2)
 
 

23. What will be the output of the following list assignment?

aList = [4, 8, 12, 16]
aList[1:4] = [20, 24, 28]
print(aList)
 
 

24. What will be the output of the following Python code?

values = [10, 20, 30, 40, 50]
print(values[::2])
 
 
 
 

25. What is the difference between list.append(item) and list.extend(iterable)?

 
 
 
 

Loading ... Loading …

Loading

Filed Under: Python, Python Basics, Python Quizzes

Did you find this page helpful? Let others know about it. Sharing helps me continue to create free Python resources.

TweetF  sharein  shareP  Pin

About Vishal

Image

I’m Vishal Hule, the Founder of PYnative.com. As a Python developer, I enjoy assisting students, developers, and learners. Follow me on Twitter.

Related Tutorial Topics:

Python Python Basics Python Quizzes

All Coding Exercises:

C Exercises
C++ Exercises
Python Exercises

Python Exercises and Quizzes

Free coding exercises and quizzes cover Python basics, data structure, data analytics, and more.

  • 15+ Topic-specific Exercises and Quizzes
  • Each Exercise contains 25+ questions
  • Each Quiz contains 25 MCQ
Exercises
Quizzes

Loading comments... Please wait.

In: Python Python Basics Python Quizzes
TweetF  sharein  shareP  Pin

  Python Quizzes

  • 15 Python Quizzes
  • Python Online MCQ Test
  • Basic Quiz For Beginners
  • Variables and Data Types Quiz
  • Functions Quiz
  • if else and loops Quiz
  • Numbers Quiz
  • String Quiz
  • List Quiz
  • Set Quiz
  • Dictionary Quiz
  • Tuple Quiz
  • Operators and Expression Quiz
  • Input and Output Quiz
  • Multithreading and Multiprocessing Quiz
  • File Handling Quiz
  • Random Data Generation Quiz

 Explore Python

  • Python Tutorials
  • Python Exercises
  • Python Quizzes
  • Python Interview Q&A
  • Python Programs

All Python Topics

Python Basics Python Exercises Python Quizzes Python Interview Python File Handling Python OOP Python Date and Time Python Random Python Regex Python Pandas Python Databases Python MySQL Python PostgreSQL Python SQLite Python JSON

About PYnative

PYnative.com is for Python lovers. Here, You can get Tutorials, Exercises, and Quizzes to practice and improve your Python skills.

Follow Us

To get New Python Tutorials, Exercises, and Quizzes

  • Twitter
  • Facebook
  • Sitemap

Explore Python

  • Learn Python
  • Python Basics
  • Python Databases
  • Python Exercises
  • Python Quizzes
  • Online Python Code Editor
  • Python Tricks

Coding Exercises

  • C Exercises
  • C++ Exercises
  • Python Exercises

Legal Stuff

  • About Us
  • Contact Us

We use cookies to improve your experience. While using PYnative, you agree to have read and accepted our:

  • Terms Of Use
  • Privacy Policy
  • Cookie Policy

Copyright © 2018–2026 pynative.com

Advertisement