
Python InstitutePCPP1 - Certified Professional Python Programmer 1
Domain 1Objective 3
PCPP-32-101 1.3 Understand and Use Inheritance, Polymorphism, and Composition 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 26 practice questions to prepare you well beyond it. (estimate)
26questions here
6free pages
6concepts
35%of the exam
Questions 16–20
- 16
Given the following code, which class is the direct parent of class C? class A: pass class B(A): pass class C(B): pass
Select an answer first - 17
Which statement accurately compares inheritance and composition?
Select an answer first - 18
A developer has the following classes: class A: pass; class B(A): pass; class C(A): pass; class D(B, C): pass. The developer wants to add a method `describe` to B and C. When an instance of D calls `describe()`, which class's method is invoked?
Select an answer first - 19
A developer has the following classes: class X: pass; class Y: pass; class Z(X, Y): pass; class W(Y, X): pass. The developer tries to create class V(Z, W). What happens?
Select an answer first - 20
How should a has-a relationship be modeled 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.