Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

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 3)

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 11–15

  1. 11foundation · easy

    How should an is-a relationship be modeled in Python?

    Select an answer first
  2. 12expert · hard

    A developer has the following classes: class A: def method(self): return 'A'; class B(A): def method(self): return 'B'; class C(A): def method(self): return 'C'; class D(B, C): def method(self): return super().method() + 'D'. What does D().method() return?

    Select an answer first
  3. 13application · medium

    A developer is modeling a university system. A Department has many Professors, and each Professor has a Department. The developer wants to ensure that when a Department is deleted, its Professors are also deleted, but the Department can exist without Professors. Which design best models this?

    Select an answer first
  4. 14application · medium

    A developer is writing a function that plays audio. The function should work with any object that has a `play()` method, including MP3Player, StreamingService, and Radio classes. The developer wants to avoid modifying the function when new audio sources are added. Which approach is best?

    Select an answer first
  5. 15application · medium

    A developer is building a shape hierarchy. The base class Shape has an area() method. Circle and Rectangle inherit from Shape and override area(). The developer wants to add a Square class that is a Rectangle with equal sides. Which class hierarchy is most appropriate?

    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.