PCAP • Practice Test 10
Free PCAP practice test — 10 questions with explanations. Set 10. No signup required.
A Python package 'mypackage' contains the following hierarchy:
mypackage/ __init__.py subpackage1/ __init__.py module_a.py subpackage2/ __init__.py module_b.py
From a script outside the package, a programmer writes:
import mypackage.subpackage1.module_aWhich statement is true about the import?
Choose an answer to begin — your selection is scored in the full session.
10 questions · instant feedback and full explanations after every question.