Python's collections: A Buffet of Specialized Data Types Quiz
Interactive Quiz ⋅ 9 Questions
By Joseph Peart
In this quiz, you’ll test your understanding of Python’s collections: A Buffet of Specialized Data Types.
Python’s collections module provides specialized container data types that approach
specific programming problems more clearly and more efficiently than the general purpose
built-ins do.
You’ll revisit namedtuple() for readable code, deque for queues and stacks,
defaultdict for missing keys, OrderedDict for ordering, Counter for tallies,
ChainMap for multiple mappings, and the wrapper classes for customizing built-ins.
The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!
Related Resources
Tutorial
Python's collections: A Buffet of Specialized Data Types
In this tutorial, you'll learn all about the series of specialized container data types in the collections module from the Python standard library.