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
πŸ’¬ Discuss
βœ… Correct Answer: (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.

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

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
242
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate