Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCPP1 - Certified Professional Python Programmer 1

Domain 1Objective 2

PCPP-32-101 1.2 Perform Python Core Syntax Operations 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 24 practice questions to prepare you well beyond it. (estimate)

24questions here
5free pages
8concepts
35%of the exam

Questions 11–15

  1. 11application · medium

    A `Deck` class wraps a list of `Card` objects. The team wants to support `card in deck` to check if a specific card is present. Which method should be added to the existing `Deck` class?

    Select an answer first
  2. 12expert · hard

    A scientific library defines a `Measurement` class that stores a value and a unit. The team needs `abs(m)`, `int(m)`, and `m1 < m2` to all work. They also need `m1 == m2` to compare both value and unit. Which set of methods must be implemented to satisfy all four requirements?

    Select an answer first
  3. 13foundation · easy

    Which dunder method must a class implement to define the behavior of the `==` operator for its instances?

    Select an answer first
  4. 14foundation · easy

    Which dunder method is called when the built-in `iter()` function is used on a custom object?

    Select an answer first
  5. 15foundation · easy

    Which dunder method should be overridden to allow a custom class to be used with the built-in `repr()` function?

    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.