gs gs109 Python Modules - Python Modules - Quiz No.1
gs gs109 Python Quiz
This quiz belongs to book/course code gs gs109 Python of gs organization. We have 134 quizzes available related to the book/course Python. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Python Modules. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: Which of these definitions correctly describes a module?
Denoted by triple quotes for providing the specification of certain program elements
Design and implementation of specific functionality to be incorporated into a program
Defines the specification of how it is to be used
Any program that reuses code
Question 2: Which of the following is not an advantage of using modules?
Provides a means of reuse of program code
Provides a means of dividing up tasks
Provides a means of reducing the size of the program
Provides a means of testing individual parts of the program
Question 3: Program code making use of a given module is called a ______ of the module.
Client
Docstring
Interface
Modularity
Question 4: ______ is a string literal denoted by triple quotes for providing the specifications of certain program elements.
Interface
Modularity
Client
Docstring
Question 5: Which of the following is true about top-down design process?
The details of a program design are addressed before the overall design
Only the details of the program are addressed
The overall design of the program is addressed before the details
Only the design of the program is addressed
Question 9: Which of the following isn’t true about main modules?
When a python file is directly executed, it is considered main module of a program
Main modules may import any number of modules
Special name given to main modules is: __main__
Other main modules can import main modules
Question 10: Which of the following is not a valid namespace?
Global namespace
Public namespace
Built-in namespace
Local namespace