Explore topic-wise MCQs in Python.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following is false about from-import form of import?

A. tThe syntax is: from modulename import identifier
B. tThis form of import prevents name clash
C. tThe namespace of imported module becomes part of importing module
D. tThe identifiers in module are accessed directly as: identifier
Answer» C. tThe namespace of imported module becomes part of importing module
2.

Which of the following is false about import modulename form of import?

A. tThe namespace of imported module becomes part of importing module
B. tThis form of import prevents name clash
C. tThe namespace of imported module becomes available to importing module
D. tThe identifiers in module are accessed as: modulename.identifier
Answer» B. tThis form of import prevents name clash
3.

Which of the following isn t true about main modules?

A. tWhen a python file is directly executed, it is considered main module of a program
B. tMain modules may import any number of modules
C. tSpecial name given to main modules is: __main__
D. tOther main modules can import main modules
Answer» E.
4.

All modular designs are because of a top-down design process.

A. tTrue
B. tFalse
Answer» C.