
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 2)
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 6–10
- 6
What is a primary consequence of using `from module import *`?
Select an answer first - 7
What is the purpose of the `sys.path` list?
Select an answer first - 8
Which code snippet correctly imports the math module and uses it to compute the square root of 16?
Select an answer first - 9
A developer has a package `web/` with submodules `web/__init__.py`, `web/urls.py`, and `web/urls/parse.py`. The developer wants to use the `parse_url` function from `web/urls/parse.py` in a script. The developer wants to call the function as `parse_url()` without any qualification. Which import statement should be used?
Select an answer first - 10
A developer is working on a project with the package structure `project/__init__.py`, `project/data/__init__.py`, and `project/data/loader.py`. The developer needs to use the `load_data` function from `project/data/loader.py` in a script located outside the `project` package. The `project` package is in a directory on `sys.path`. Which import statement allows the developer to call `load_data()` directly?
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.