Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Main modules may import other modules and these may import other modules but a m

ID: 3709590 • Letter: M

Question

Main modules may import other modules and these may import other modules but a main module may not be imported.

Question 28

a) True

b) False

Save

Question 29

The main module is the module which is loaded and directly executed.

Question 29 options:

a) True

b) False

Save

Question 30

With the "import moduleName" form of import, any utilized entities from the imported module must be prefixed with the module name.

Question 30 options:

a) True

b) False

Save

Question 31

The naming convention for private modules starts with,

Question 31 options:

a)

two underscores.

b)

two asterisks.

c)

two double quotes.

d)

two single quotes.

Save

Question 32

When importing modules, all Python Standard Library modules must be imported before any programmer-defined modules, otherwise a runtime error will occur.

Question 32 options:

a) True

b) False

Save

Question 33

Every module in Python has its own namespace.

Question 33 options:

a) True

b) False

Save

Question 34 (5 points)

When using the "from-import" form of importing, there are optional formats, what are they,

Question 34 options:

a)

from modulename import func1, func2.

b)

from modulename import func1 as new_func1.

c)

from modulename import *

d)

all of the above.

a) True

b) False

Explanation / Answer

here are the answers...

Answers are highlighted in bold..

================================================================

Main modules may import other modules and these may import other modules but a main module may not be imported.

Question 28

a) True

b) False

Save

Question 29

The main module is the module which is loaded and directly executed.

Question 29 options:

a) True

b) False

Save

Question 30

With the "import moduleName" form of import, any utilized entities from the imported module must be prefixed with the module name.

Question 30 options:

a) True

b) False

Save

Question 31

The naming convention for private modules starts with,

Question 31 options:

a)

two underscores.

b)

two asterisks.

c)

two double quotes.

d)

two single quotes.

Save

Question 32

When importing modules, all Python Standard Library modules must be imported before any programmer-defined modules, otherwise a runtime error will occur.

Question 32 options:

a) True

b) False

Save

Question 33

Every module in Python has its own namespace.

Question 33 options:

a) True

b) False

Question 34 (5 points)

When using the "from-import" form of importing, there are optional formats, what are they,

Question 34 options:

a)

from modulename import func1, func2.

b)

from modulename import func1 as new_func1.

c)

from modulename import *

d)

all of the above.

======================================================

Kindly CHeck and Verify Thanks..!!!

a) True

b) False

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote