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

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 31–35

  1. 31foundation · easy

    When is IndexError raised in Python?

    Select an answer first
  2. 32expert · medium

    A developer is writing a function that parses a user input string into an integer. The function should catch errors when the input is not a valid number, but should NOT catch errors when the input is of the wrong type (e.g., a list). Which except clause should be used?

    Select an answer first
  3. 33foundation · easy

    What is the direct parent class of IndexError?

    Select an answer first
  4. 34application · easy

    A developer is writing a function that concatenates a string and an integer using the `+` operator. The function should catch the error that occurs when the types are incompatible. Which exception should be caught?

    Select an answer first
  5. 35application · easy

    A developer is writing a configuration loader that reads a dictionary of settings. If a required setting is missing, the program should log a warning and continue. Which exception should be caught to handle a missing key?

    Select an answer first
Finished these 5 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.