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

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 6–10

  1. 6expert · hard

    A `ComplexNumber` class stores `real` and `imag` attributes. The team wants `abs(c)` to return the magnitude, and `c1 == c2` to compare both parts. They also want `c1 < c2` to compare by magnitude. Which set of methods must be implemented?

    Select an answer first
  2. 7foundation · easy

    Which dunder method must be implemented to allow a custom object to be converted to an integer using `int(obj)`?

    Select an answer first
  3. 8foundation · easy

    Which dunder method is used to define the behavior of the `<` operator for custom objects?

    Select an answer first
  4. 9foundation · easy

    When extending a class to support the `+` operator, which method should be added or overridden?

    Select an answer first
  5. 10foundation · easy

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

    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.