Exam PCAP-31-03 All QuestionsBrowse all questions from this exam
Question 5

With regards to the directory structure below, select the proper forms of the directives in order to import module_c. (Choose two.)

    Correct Answer: A, B

    The correct forms of the directives to import module_c file considering the directory structure are: 'from pypack.upper.lower import module_c' and 'import pypack.upper.lower.module_c'. These correctly reference the full path of the module. The other options are incorrect because they either omit necessary parts of the path or do not start from the root package.

Discussion
herrmann69Options: AB

A and B are correct. from pypack.upper.lower import module_c import import pypack.upper.lower.module_c C is missing "lower" between "upper" and "module_c" D is missing "pypack" as the parent of "upper"

Dave304409Options: AB

is correct

DKAT2023Options: AB

A and B