Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

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 1)

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 1–5

  1. 1foundation · easy

    Which of the following code snippets would raise a ValueError?

    Select an answer first
  2. 2expert · medium · select all that apply

    A developer is writing a script that uses sys.exit() to terminate early when a configuration file is missing. The developer wants to ensure that the SystemExit exception is not accidentally caught by a broad except clause. Which of the following statements are true? Select all that apply.

    Select an answer first
  3. 3foundation · easy

    When is KeyError raised in Python?

    Select an answer first
  4. 4expert · medium · select all that apply

    A developer is writing a script that runs an infinite loop until the user presses Ctrl+C. The script should handle the interruption gracefully. Which of the following statements are true? Select all that apply.

    Select an answer first
  5. 5foundation · easy

    What happens when sys.exit() is called in a Python program?

    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.