PCEP Python Collections Fundamentals Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 8865 | Total Attempts: 106,055
| Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #--
0 %
0/100
Score 0/100

1. Which collection type uses key-value pairs?

Submit
Please wait...
About This Quiz
PCEP Python Collections Fundamentals Quiz - Quiz

This quiz evaluates your understanding of Python collections\u2014lists, tuples, dictionaries, and sets. Master the core data structures used in PCEP certification, including creation, manipulation, and iteration. Test your knowledge of collection methods, indexing, and practical application in real-world Python programs.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. The `sorted()` function returns a new ____ containing sorted elements.

Submit

3. What is the output of `len({'a': 1, 'b': 2, 'c': 3})`?

Submit

4. Which statement is true about list comprehensions?

Submit

5. The `dict.get(key)` method returns None if the key does not exist, rather than raising a ____.

Submit

6. What does `my_list[1:3]` return from `my_list = [0, 1, 2, 3, 4]`?

Submit

7. Negative indexing in lists starts from ____.

Submit

8. Which method removes all elements from a list?

Submit

9. What is the result of `{1, 2, 3} & {2, 3, 4}`?

Submit

10. The `list.insert(index, value)` method inserts a value at a specified ____.

Submit

11. Which collection type in Python is ordered, mutable, and allows duplicate elements?

Submit

12. What does `my_tuple = (1,); print(type(my_tuple))` output?

Submit

13. The method `dict.keys()` returns ____ of the dictionary.

Submit

14. What is the correct syntax to access the first element of a list named `items`?

Submit

15. Which of the following is an unordered collection with no duplicates?

Submit

16. Sets in Python automatically ____ duplicate values.

Submit

17. What does `my_dict = {'a': 1, 'b': 2}; my_dict['c'] = 3` result in?

Submit

18. Which method removes and returns the last element from a list?

Submit

19. Tuples in Python are ____.

Submit

20. What is the output of `my_list = [1, 2, 3]; my_list.append(4); print(len(my_list))`?

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which collection type uses key-value pairs?
The `sorted()` function returns a new ____ containing sorted elements.
What is the output of `len({'a': 1, 'b': 2, 'c': 3})`?
Which statement is true about list comprehensions?
The `dict.get(key)` method returns None if the key does not exist,...
What does `my_list[1:3]` return from `my_list = [0, 1, 2, 3, 4]`?
Negative indexing in lists starts from ____.
Which method removes all elements from a list?
What is the result of `{1, 2, 3} & {2, 3, 4}`?
The `list.insert(index, value)` method inserts a value at a specified...
Which collection type in Python is ordered, mutable, and allows...
What does `my_tuple = (1,); print(type(my_tuple))` output?
The method `dict.keys()` returns ____ of the dictionary.
What is the correct syntax to access the first element of a list named...
Which of the following is an unordered collection with no duplicates?
Sets in Python automatically ____ duplicate values.
What does `my_dict = {'a': 1, 'b': 2}; my_dict['c'] = 3` result in?
Which method removes and returns the last element from a list?
Tuples in Python are ____.
What is the output of `my_list = [1, 2, 3]; my_list.append(4);...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!