
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 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 18 practice questions to prepare you well beyond it. (estimate)
18questions here
4free pages
7concepts
35%of the exam
Questions 1–5
- 1
How can you access the traceback object associated with an exception inside an `except` block?
Select an answer first - 2
A developer has this code: try: value = int(user_input) except ValueError: raise RuntimeError("Invalid input") When a ValueError occurs, what is the value of the __context__ attribute on the RuntimeError instance?
Select an answer first - 3
A debugging tool catches an exception and needs to log the sequence of function names in the call stack at the moment the exception was raised. The exception object is 'exc'. Which approach correctly extracts this sequence?
Select an answer first - 4
What is the purpose of adding named attributes to a custom exception class?
Select an answer first - 5
What happens when you use a bare `raise` statement inside an `except` block?
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.