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)

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!