Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) Which of the statements about modules is false?

(A) in the “from-import” form of import, identifiers beginning with two underscores are private and aren’t imported
(B) dir() built-in function monitors the items in the namespace of the main module
(C) in the “from-import” form of import, all identifiers regardless of whether they are private or public are imported
(D) when a module is loaded, a compiled version of the module with file extension .pyc is automatically produced
Correct answer : Option (C) - in the “from-import” form of import, all identifiers regardless of whether they are private or public are imported

Explanation:
 in the “from-import” form of import, identifiers beginning with two underscores are private and aren’t imported.

Share

Discusssion

Login to discuss.