Q. Which of the following is false about “from-import” form of import?

  • (A) the syntax is: from modulename import identifier
  • (B) this form of import prevents name clash
  • (C) the namespace of imported module becomes part of importing module
  • (D) the identifiers in module are accessed directly as: identifier
πŸ’¬ Discuss
βœ… Correct Answer: (B) this form of import prevents name clash
Explanation: in the “from-import” form of import, there may be name clashes because names of the imported identifiers aren’t specified along with the module name.

Explanation by: Mr. Dubey
in the “from-import” form of import, there may be name clashes because names of the imported identifiers aren’t specified along with the module name.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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