PCAP • Practice Test 18
Free PCAP practice test — 15 questions with explanations. Set 18. No signup required.
A developer has a project structure with 'my_package/' containing '__init__.py', 'module_a.py', and 'sub_package/' (with its own '__init__.py'). They want to import function 'foo' from 'module_a' inside a script in 'sub_package' using a relative import. Which statement is correct?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.