PCAP Modules and Packages • Set 5
PCAP Modules and Packages Practice Test 5 — 15 questions with explanations. Free, no signup.
Consider the following directory structure: project/ main.py pkg/ __init__.py mod1.py subpkg/ __init__.py mod2.py From main.py, you write: from pkg.subpkg import mod2 Which THREE of the following are true regarding relative imports?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.