
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 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 24 practice questions to prepare you well beyond it. (estimate)
24questions here
5free pages
8concepts
35%of the exam
Questions 21–24
- 21
A financial analytics library defines a `Money` class that stores an amount as a `Decimal`. The team wants `abs(money)` to return a new `Money` object with the absolute value, and also wants `money1 < money2` to compare by the underlying amount. Which pair of methods must be implemented on `Money` to satisfy both requirements?
Select an answer first - 22
Which dunder method is invoked when the `+` operator is used with a custom object on the left side?
Select an answer first - 23
Which dunder method must be implemented to allow a custom object to support indexing like `obj[key]`?
Select an answer first - 24
Which dunder method is called when the `in` operator is used to check membership in a custom container?
Select an answer first
Finished these 4 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to PCPP-32-1
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.