Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAP - Certified Associate Python Programmer

Domain 2Objective 1

PCAP-31-03 2.1 Handle Errors Using Python-Defined Exceptions PCAP-31 Practice Questions (Page 3)

Part of the Exceptions domain, which accounts for 14% of the PCAP-31 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~4–6 in this domain), expect 2–3 from this objective — we provide 23 practice questions to prepare you well beyond it. (estimate)

23questions here
5free pages
11concepts
14%of the exam

Questions 11–15

  1. 11foundation · easy

    What does the 'as e' part of 'except ValueError as e:' do?

    Select an answer first
  2. 12foundation · easy

    What does the args property of an exception object contain?

    Select an answer first
  3. 13foundation · easy

    When does the finally clause execute in a try/except/finally block?

    Select an answer first
  4. 14foundation · easy

    What is the scope of the variable e in the following code? try: x = int('abc') except ValueError as e: print(e) print(e)

    Select an answer first
  5. 15foundation · easy

    What is the purpose of re-raising an exception with 'raise' 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. “PCAP-31” is a trademark of its owner, used for identification only.