nerdexam
Python_Institute

PCAP-31-03 · Question #4

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

The correct answer is A. import pypack.module_a D. from pypack import module_a. See the full explanation below for the reasoning.

Question

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

Exhibit

PCAP-31-03 question #4 exhibit

Options

  • Aimport pypack.module_a
  • Bimport module_a from pypack
  • Cimport module_a
  • Dfrom pypack import module_a

How the community answered

(43 responses)
  • A
    81% (35)
  • B
    5% (2)
  • C
    14% (6)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice