Exam PCAP All QuestionsBrowse all questions from this exam
Question 58

Package source directories/folders can be:

    Correct Answer: B

    Package source directories or folders can be packed as a ZIP file and distributed as one file. This approach makes it easier to distribute and install the package, as the entire package is contained within a single file. The ZIP file can be used by other programs through import mechanisms, allowing for convenient distribution and use.

Discussion
AdeshinaOption: B

Package source directories/folders can be packed as a ZIP file and distributed as one file. A Python package is a collection of modules that can be imported and used in other Python programs. Packages are typically organized as directories/folders, with each directory/folder containing one or more modules. To distribute a package, you can pack the package source directory/folder into a ZIP file, which can be imported by other programs using the importlib.util.module_from_spec method. This allows you to distribute the package as a single file, which makes it easier to distribute and install.

aykhazriOption: C

the answer is C

Acid_ScorpionOption: B

Correct answer is B. Info: https://realpython.com/python-zip-import/