
Python InstitutePCEP - Certified Entry-Level Python Programmer
Domain 4Objective 3
PCEP-30-02 4.3 Python Built-In Exceptions Hierarchy PCEP-30 Practice Questions (Page 6)
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 35 practice questions to prepare you well beyond it. (estimate)
35questions here
7free pages
11concepts
28%of the exam
Questions 26–30
- 26
What is the primary purpose of the Exception class in Python's exception hierarchy?
Select an answer first - 27
What is the direct parent class of KeyboardInterrupt?
Select an answer first - 28
A developer writes a script that must catch any error that can be handled gracefully, but the script must still terminate if the user presses Ctrl+C or if sys.exit() is called. Which exception class should be used in the except clause to achieve this?
Select an answer first - 29
Which of the following is an abstract base class in Python's exception hierarchy?
Select an answer first - 30
What causes a TypeError to be raised in Python?
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. “PCEP-30” is a trademark of its owner, used for identification only.