
Python InstitutePCEP - Certified Entry-Level Python Programmer
Domain 4Objective 4
PCEP-30-02 4.4 Basics of Python Exception Handling PCEP-30 Practice Questions (Page 3)
Part of the Functions and Exceptions domain, which accounts for 28% of the PCEP-30 exam. Python Institute does not publish an official question count, but from its 45-minute exam (~20–30 total, ~6–8 in this domain), expect 2–2 from this objective — we provide 13 practice questions to prepare you well beyond it. (estimate)
13questions here
3free pages
5concepts
28%of the exam
Questions 11–13
- 11
A developer writes a try block that may raise either a ValueError or a TypeError. They want to handle ValueError with a specific message and any other exception with a generic message. Which except clause order is correct?
Select an answer first - 12
What is the purpose of the try-except block in Python?
Select an answer first - 13
A library function `parse_data(data)` is designed to be used by multiple callers. The library author wants to let each caller decide how to handle errors. What is the best design?
Select an answer first
Finished these 3 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to PCEP-30
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. “PCEP-30” is a trademark of its owner, used for identification only.