
Python InstitutePCPP1 - Certified Professional Python Programmer 1
Domain 1Objective 8
PCPP-32-101 1.8 Apply Subclassing of Built-In Classes PCPP-32-1 Practice Questions (Page 4)
Part of the Advanced Object-Oriented Programming domain, which accounts for 35% of the PCPP-32-1 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~9–16 in this domain), expect 1–1 from this objective — we provide 21 practice questions to prepare you well beyond it. (estimate)
21questions here
5free pages
5concepts
35%of the exam
Questions 16–20
- 16
A developer subclasses list to create a MaxList that tracks the maximum value. They override append() to update self.max_value and call super().append(). They also override __init__ to initialize max_value. When they use the .sort() method, the max_value becomes incorrect. Why?
Select an answer first - 17
Which of the following correctly adds a class-level attribute to a subclass of a built-in class?
Select an answer first - 18
A developer is building a configuration parser that must treat dictionary keys as case-insensitive. They create a class that inherits from dict and override __getitem__ and __setitem__ to normalize keys with .lower(). However, when they call the .update() method with another dictionary, the keys are stored with their original case. What is the most likely cause and the minimal fix?
Select an answer first - 19
What is the effect of adding a new attribute in a subclass of a built-in class?
Select an answer first - 20
What is the primary purpose of subclassing a built-in class in Python?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Python Institute. “PCPP-32-1” is a trademark of its owner, used for identification only.