Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

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 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 16 practice questions to prepare you well beyond it. (estimate)

16questions here
4free pages
6concepts
35%of the exam

Questions 1–5

  1. 1application · medium

    A developer is designing a `MathUtils` class with two methods: `add(a, b)` which simply returns `a + b`, and `create_default()` which returns a new `MathUtils` instance. The `add` method needs no access to the class or instance, while `create_default` must work correctly when called on a subclass. Which decorators should be used?

    Select an answer first
  2. 2foundation · easy

    Which decorator is used to define a method that does not receive the instance (self) or the class (cls) as an implicit first argument?

    Select an answer first
  3. 3foundation · easy

    What is the primary difference between a class method and a static method?

    Select an answer first
  4. 4foundation · easy

    In a class method used as an alternative constructor, how do you create a new instance of the class?

    Select an answer first
  5. 5application · medium

    A `Logger` class has a class attribute `log_level = 'INFO'` and a class method `set_level(level)` that updates it. The team wants a `log(message)` class method that reads the current `log_level` and prints the message with that level prefix. Which implementation correctly uses `cls` to access the class state?

    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.