Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute Exam PCAP-31-03 Topic 3 Question 53 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 53
Topic #: 3
[All PCAP-31-03 Questions]

With regards to the directory structure below, select the proper forms of the directives in order to import module_

a. (Select two answers)

Show Suggested Answer Hide Answer
Suggested Answer: C, D

Contribute your Thoughts:

Naomi
15 days ago
Hey, at least they didn't ask us to import module_a from the 'pypack.subpack.subsubpack.module_a' directory. That would be a real pain in the package!
upvoted 0 times
...
Regenia
16 days ago
Guys, I think we're overthinking this. The answer is clearly D) from pypack import module_a. It's like the question is handing us the solution on a silver platter!
upvoted 0 times
...
Ahmed
18 days ago
Hmm, I'm leaning towards B) import module_a from pypack. That way, we can just use the module name without having to type out the whole package path. Saves a few keystrokes, you know?
upvoted 0 times
...
Jutta
20 days ago
I'm pretty sure the answer is C) import module_a. Why bother with the package name when we can just import the module directly? I mean, who needs all that extra typing, am I right?
upvoted 0 times
...
Arthur
26 days ago
I think the correct answers are A) import pypack.module_a and D) from pypack import module_a. The directory structure shows that module_a is located in the pypack package, so we need to use the package name to access it.
upvoted 0 times
Adolph
7 days ago
I agree, A) import pypack.module_a and D) from pypack import module_a are the correct answers.
upvoted 0 times
...
...
Donette
2 months ago
I'm not sure about B) import module_a from pypack. It doesn't seem to be the right way to import the module.
upvoted 0 times
...
Nan
2 months ago
I agree with Nobuko. Those directives match the directory structure given in the image.
upvoted 0 times
...
Nobuko
2 months ago
I think the correct answers are A) import pypack.module_a and D) from pypack import module_a.
upvoted 0 times
...

Save Cancel