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

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 21–25

  1. 21application · medium

    A developer is writing a function that saves data to a storage backend. The function should work with any object that has a save(data) method, including Database, FileStorage, and CloudStorage classes. The developer wants to avoid modifying the function when new storage backends are added. Which approach is best?

    Select an answer first
  2. 22application · medium

    A developer is writing a function that processes payment methods. The function should accept any object that has a `pay(amount)` method, regardless of its class. The system currently has CreditCard and PayPal classes, both with a `pay` method. Which approach best implements this requirement?

    Select an answer first
  3. 23foundation · easy

    Which code snippet correctly implements multiple inheritance?

    Select an answer first
  4. 24expert · hard

    A developer has a class hierarchy: class A: def greet(self): return 'A'; class B(A): def greet(self): return 'B'; class C(A): def greet(self): return 'C'; class D(B, C): pass. An instance of D calls greet(). What is the result?

    Select an answer first
  5. 25foundation · easy

    What is the key difference between single and multiple inheritance 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.