PCAP-31-03 Exam QuestionsBrowse all questions from this exam

PCAP-31-03 Exam - Question 42


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

Show Answer
Correct Answer: BC

To import module_b from the specified directory structure, two possible correct forms are: 'import pypack.upper.module_b' and 'from pypack.upper import module_b'. The first form imports the module_b by specifying the full path, and the second form imports the module_b from the upper directory within the pypack package.

Discussion

1 comment
Sign in to comment
DKAT2023Options: BC
Jul 12, 2024

B and C are corrects