
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 1)
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 1–5
- 1
A `Vector2D` class has `x` and `y` attributes. The team wants two vectors to be considered equal when both coordinates match, and wants to use vectors as keys in a dictionary. Which two methods must be implemented together to satisfy both requirements?
Select an answer first - 2
A `Person` class has `name` and `age` attributes. The team wants `person1 < person2` to compare by age, and `person1 == person2` to compare by both name and age. Which methods must be implemented on `Person`?
Select an answer first - 3
Which dunder method is called when an attribute is not found through normal lookup on an instance?
Select an answer first - 4
A `Playlist` class wraps a list of song titles. The team wants to support `len(playlist)` to return the number of songs. Which method must be added to the existing `Playlist` class?
Select an answer first - 5
Which dunder method should be implemented to make a custom object work with the built-in `abs()` 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.