
Python InstitutePCPP1 - Certified Professional Python Programmer 1
Domain 1Objective 5
PCPP-32-101 1.5 Design, Build, and Use Static and Class Methods 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 16 practice questions to prepare you well beyond it. (estimate)
16questions here
4free pages
6concepts
35%of the exam
Questions 11–15
- 11
A developer is refactoring a `DatabaseConnection` class. They have a method `validate_connection_string(conn_str)` that checks the format of a connection string (pure validation, no state access) and a method `get_default_connection()` that returns a class-level default connection object. Which decorators should be used?
Select an answer first - 12
Which of the following correctly demonstrates how to call another class method using the cls parameter?
Select an answer first - 13
What is a key characteristic of a static method in Python?
Select an answer first - 14
What is a common use case for a class method?
Select an answer first - 15
A developer is building a `TemperatureConverter` utility class. They need a method that converts Celsius to Fahrenheit using the formula `(c * 9/5) + 32`. The method must be callable directly on the class (e.g., `TemperatureConverter.c_to_f(100)`) and must NOT access or modify any class or instance state. Which decorator should they apply?
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.