Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCPP1 - Certified Professional Python Programmer 1

Domain 1Objective 9

PCPP-32-101 1.9 Advanced Techniques for Creating and Serving Exceptions 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 18 practice questions to prepare you well beyond it. (estimate)

18questions here
4free pages
7concepts
35%of the exam

Questions 11–15

  1. 11expert · hard

    A developer has a function that catches a specific exception, performs cleanup, and then needs to re-raise the same exception so the caller can handle it. The requirement is that the traceback must show the original raise location, not the re-raise location. Which pattern is correct?

    Select an answer first
  2. 12foundation · easy

    What does the `args` attribute of an exception object contain?

    Select an answer first
  3. 13foundation · easy

    What is the key difference between `__context__` and `__cause__`?

    Select an answer first
  4. 14application · medium

    A developer has a function that can raise either a ValueError (for bad input) or a KeyError (for missing data). The caller wants to handle both with a single except block and log which type occurred. Which pattern is correct?

    Select an answer first
  5. 15foundation · easy

    What is the role of the `__context__` attribute in exception handling?

    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.