Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAD - Certified Associate in Data Analytics with Python

Domain 2Objective 2

Module Management and Exception Handling PCAD-31 Practice Questions (Page 1)

Part of the Programming and Database Skills domain, which accounts for 33.3% of the PCAD-31 exam. Python Institute does not publish an official question count, but from its 60-minute exam (~25–40 total, ~8–8 in this domain), expect 2–2 from this objective — we provide 24 practice questions to prepare you well beyond it. (estimate)

24questions here
5free pages
10concepts
33.3%of the exam

Questions 1–5

  1. 1application · easy

    A data analyst runs a script that reads a CSV file. The script crashes with the following traceback: ``` Traceback (most recent call last): File "script.py", line 3, in <module> data = open('data.csv').read() FileNotFoundError: [Errno 2] No such file or directory: 'data.csv' ``` What is the most likely cause of this error?

    Select an answer first
  2. 2foundation · medium

    A data pipeline reads a CSV file, parses each row, and writes results to a database. The developer wants to catch a FileNotFoundError separately from a ValueError, but handle all other exceptions with a generic fallback. Which except clause structure correctly implements this?

    Select an answer first
  3. 3foundation · easy

    What is the benefit of using a `finally` clause when working with file operations?

    Select an answer first
  4. 4foundation · easy

    After executing `import random`, which expression correctly calls the `randint` function from the random module?

    Select an answer first
  5. 5foundation · easy

    Why is it beneficial to create custom exception classes?

    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. “PCAD-31” is a trademark of its owner, used for identification only.