Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAP - Certified Associate Python Programmer

Domain 1Objective 1

PCAP-31-03 1.1 Import and Use Modules and Packages PCAP-31 Practice Questions (Page 1)

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 19 practice questions to prepare you well beyond it. (estimate)

19questions here
4free pages
8concepts
12%of the exam

Questions 1–5

  1. 1application · easy

    A developer has imported the `math` module and wants to verify which names are available in the module. The developer also wants to check if a specific function `isqrt` is available in the current Python version. Which code snippet will list all names defined in the `math` module?

    Select an answer first
  2. 2foundation · easy

    What does the `dir()` function return when called without arguments?

    Select an answer first
  3. 3application · medium

    A developer is building a small utility script that uses several functions from the `os` module. The script also defines its own function named `open`. The developer wants to minimize typing but is concerned about accidentally overwriting the built-in `open` function. Which import approach is the safest while still allowing direct access to the needed `os` functions?

    Select an answer first
  4. 4foundation · easy

    Which statement imports the `func` function from the submodule `sub` of package `pkg` so that it can be called as `func()`?

    Select an answer first
  5. 5foundation · easy

    Which statement best describes a risk of using `from module import *` in a large 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. “PCAP-31” is a trademark of its owner, used for identification only.