Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAP - Certified Associate Python Programmer

Domain 1Objective 5

PCAP-31-03 1.5 Create and Use User-Defined Modules and Packages PCAP-31 Practice Questions (Page 4)

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

30questions here
6free pages
8concepts
12%of the exam

Questions 16–20

  1. 16foundation · easy

    Which list does Python consult to find a module when it is imported?

    Select an answer first
  2. 17foundation · easy

    In a module, which naming convention indicates that a variable is intended to be private?

    Select an answer first
  3. 18application · medium

    A developer has the following directory structure: ``` project/ main.py utils/ __init__.py helpers.py ``` The `__init__.py` file is empty. The developer wants to import `helpers` from `main.py`. Which import statement will work?

    Select an answer first
  4. 19application · medium

    A developer has a module `mymod.py` in the current working directory. The developer runs a script from a different directory that imports `mymod`. The import fails with `ModuleNotFoundError`. The developer checks `sys.path` and sees that the current working directory is NOT listed. What is the most direct way to make the import work without permanently changing the system?

    Select an answer first
  5. 20foundation · easy

    What is the primary benefit of placing related functions and constants into a user-defined module?

    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.