Python Modules MCQs with Answers Set 01

Practice Python Modules MCQs with Answers Set 01 provided below. The MCQ Questions for [current-page:node:field_class] Modules [current-page:node:field_subject] with answers and follow the latest [current-page:node:field_board]/ NCERT and KVS patterns. Refer to more Chapter-wise MCQs for [current-page:node:field_board] [current-page:node:field_class] [current-page:node:field_subject] and also download more latest study material for all subjects

MCQ for [current-page:node:field_class] [current-page:node:field_subject] Modules

[current-page:node:field_class] [current-page:node:field_subject] students should review the 50 questions and answers to strengthen understanding of core concepts in Modules

Modules MCQ Questions [current-page:node:field_class] [current-page:node:field_subject] with Answers

Question. Which of these definitions correctly describes a module?
(a) Denoted by triple quotes for providing the specification of certain program elements
(b) Design and implementation of specific functionality to be incorporated into a program
(c) Defines the specification of how it is to be used
(d) Any program that reuses code
Answer: b Explanation: The term “module” refers to the implementation of specific functionality to be incorporated into a program.

Question. Which of the following is not an advantage of using modules?
(a) Provides a means of reuse of program code
(b) Provides a means of dividing up tasks
(c) Provides a means of reducing the size of the program
(d) Provides a means of testing individual parts of the program
Answer: c Explanation: The total size of the program remains the same regardless of whether modules are used or not. Modules simply divide the program.

Question. Program code making use of a given module is called a ______ of the module.
(a) Client
(b) Docstring
(c) Interface
(d) Modularity
Answer: a Explanation: Program code making use of a given module is called the client of the module. There may be multiple clients for a module.

Question. ______ is a string literal denoted by triple quotes for providing the specifications of certain program elements.
(a) Interface
(b) Modularity
(c) Client
(d) Docstring
Answer: d Explanation: Docstring used for providing the specifications of program elements.

Question. Which of the following is true about top-down design process?
(a) The details of a program design are addressed before the overall design
(b) Only the details of the program are addressed
(c) The overall design of the program is addressed before the details
(d) Only the design of the program is addressed
Answer: c Explanation: Top-down design is an approach for deriving a modular design in which the overall design.

Question. In top-down design every module is broken into same number of submodules.
(a) True
(b) False
Answer: b Explanation: In top-down design every module can even be broken down into different number of submodules.

Question. All modular designs are because of a top-down design process.
(a) True
(b) False
Answer: b Explanation: The details of the program can be addressed before the overall design too. Hence, all modular designs are not because of a top-down design process.

Question. What will be the output of the following Python code?
#mod1
def change(a):
 b=[x*2 for x in a]
 print(b)
#mod2
def change(a):
 b=[x*x for x in a]
 print(b)
from mod1 import change
from mod2 import change
#main
s=[1,2,3]
change(s)
(a) [2,4,6]
(b) [1,4,9]
(c) [2,4,6] [1,4,9]
(d) There is a name clash
Answer: d Explanation: A name clash is when two different entities with the same identifier become part of the same scope. Since both the modules have the same function name, there is a name clash.

Question. Which of the following isn’t true about main modules?
(a) When a python file is directly executed, it is considered main module of a program
(b) Main modules may import any number of modules
(c) Special name given to main modules is: __main__
(d) Other main modules can import main modules
Answer: d Explanation: Main modules are not meant to be imported into other modules.

Question. Which of the following is not a valid namespace?
(a) Global namespace
(b) Public namespace
(c) Built-in namespace
(d) Local namespace
Answer: b Explanation: During a Python program execution, there are as many as three namespaces – built-in namespace, global namespace and local namespace.

Question. Which of the following is false about “import modulename” form of import?
(a) The namespace of imported module becomes part of importing module
(b) This form of import prevents name clash
(c) The namespace of imported module becomes available to importing module
(d) The identifiers in module are accessed as: modulename.identifier
Answer: a Explanation: In the “import modulename” form of import, the namespace of imported module becomes available to, but not part of, the importing module.

Question. 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
Answer: b 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.

Question. 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
Answer: c Explanation: In the “from-import” form of import, identifiers beginning with two underscores are private and aren’t imported.

Question. What will be the output of the following Python code?
from math import factorial
print(math.factorial(5))
(a) 120
(b) Nothing is printed
(c) Error, method factorial doesn’t exist in math module
(d) Error, the statement should be: print(factorial(5))
Answer: d Explanation: In the “from-import” form of import, the imported identifiers (in this case factorial()) aren’t specified along with the module name.

Question. What is the order of namespaces in which Python looks for an identifier?
(a) Python first searches the global namespace, then the local namespace and finally the built in namespace
(b) Python first searches the local namespace, then the global namespace and finally the built in namespace
(c) Python first searches the built-in namespace, then the global namespace and finally the local namespace
(d) Python first searches the built-in namespace, then the local namespace and finally the global namespace
Answer: b Explanation: Python first searches for the local, then the global and finally the built-in namespace.

Question. What is returned by math.ceil(3.4)?
(a) \( 3 \)
(b) \( 4 \)
(c) \( 4.0 \)
(d) \( 3.0 \)
Answer: b Explanation: The ceil function returns the smallest integer that is bigger than or equal to the number itself.

Question. What is the value returned by math.floor(3.4)?
(a) \( 3 \)
(b) \( 4 \)
(c) \( 4.0 \)
(d) \( 3.0 \)
Answer: a Explanation: The floor function returns the biggest number that is smaller than or equal to the number itself.

Question. What will be the output of print(math.copysign(3, -1))?
(a) \( 1 \)
(b) \( 1.0 \)
(c) \( -3 \)
(d) \( -3.0 \)
Answer: d Explanation: The copysign function returns a float whose absolute value is that of the first argument and the sign is that of the second argument.

Question. What is displayed on executing print(math.fabs(-3.4))?
(a) \( -3.4 \)
(b) \( 3.4 \)
(c) \( 3 \)
(d) \( -3 \)
Answer: b Explanation: A negative floating point number is returned as a positive floating point number.

Question. Is the output of the function abs() the same as that of the function math.fabs()?
(a) sometimes
(b) always
(c) never
(d) none of the mentioned
Answer: a Explanation: math.fabs() always returns a float and does not work with complex numbers whereas the return type of abs() is determined by the type of value that is passed to it.

Question. What is the value returned by math.fact(6)?
(a) \( 720 \)
(b) \( 6 \)
(c) \( [1, 2, 3, 6] \)
(d) error
Answer: d Explanation: NameError, fact() is not defined.

Question. What is the value of x if x = math.factorial(0)?
(a) \( 0 \)
(b) \( 1 \)
(c) error
(d) none of the mentioned
Answer: b Explanation: Factorial of \( 0 \) is \( 1 \).

Question. What is math.factorial(4.0)?
(a) \( 24 \)
(b) \( 1 \)
(c) error
(d) none of the mentioned
Answer: a Explanation: The factorial of \( 4 \) is returned.

Question. What will be the output of print(math.factorial(4.5))?
(a) \( 24 \)
(b) \( 120 \)
(c) error
(d) \( 24.0 \)
Answer: c Explanation: Factorial is only defined for non-negative integers.

Question. What is math.floor(0o10)?
(a) \( 8 \)
(b) \( 10 \)
(c) \( 0 \)
(d) \( 9 \)
Answer: a Explanation: \( 0o10 \) is \( 8 \) and \( floor(8) \) is \( 8 \).

Question. What does the function math.frexp(x) return?
(a) a tuple containing the mantissa and the exponent of x
(b) a list containing the mantissa and the exponent of x
(c) a tuple containing the mantissa of x
(d) a list containing the exponent of x
Answer: a Explanation: It returns a tuple with two elements. The first element is the mantissa and the second element is the exponent.

Question. What is the result of math.fsum([.1 for i in range(20)])?
(a) \( 2.0 \)
(b) \( 20 \)
(c) \( 2 \)
(d) \( 2.0000000000000004 \)
Answer: a Explanation: The function fsum returns an accurate floating point sum of the elements of its argument.

Question. What is the result of sum([.1 for i in range(20)])?
(a) \( 2.0 \)
(b) \( 20 \)
(c) \( 2 \)
(d) \( 2.0000000000000004 \)
Answer: d Explanation: There is some loss of accuracy when we use sum with floating point numbers. Hence the function fsum is preferable.

Question. What is returned by math.isfinite(float(‘inf’))?
(a) True
(b) False
(c) None
(d) error
Answer: b Explanation: float(‘inf’) is not a finite number.

Question. What is returned by math.isfinite(float(‘nan’))?
(a) True
(b) False
(c) None
(d) error
Answer: b Explanation: float(‘nan’) is not a finite number.

Question. What is x if x = math.isfinite(float(‘0.0’))?
(a) True
(b) False
(c) None
(d) error
Answer: a Explanation: float(‘0.0’) is a finite number.

Question. What will be the output of the following Python code?
>>> -float('inf') + float('inf')

(a) inf
(b) nan
(c) 0
(d) 0.0
Answer: b Explanation: The result of float(‘inf’)-float(‘inf’) is undefined.

Question. What will be the output of the following Python code?
print(math.isinf(float('-inf')))

(a) error, the minus sign shouldn’t have been inside the brackets
(b) error, there is no function called isinf
(c) True
(d) False
Answer: c Explanation: -float(‘inf’) is the same as float(‘-inf’).

Question. What is the value of x if x = math.ldexp(0.5, 1)?
(a) \( 1 \)
(b) \( 2.0 \)
(c) \( 0.5 \)
(d) none of the mentioned
Answer: d Explanation: The value returned by ldexp(x, y) is \( x * (2 ** y) \). In the current case x is \( 1.0 \).

Question. What is returned by math.modf(1.0)?
(a) \( (0.0, 1.0) \)
(b) \( (1.0, 0.0) \)
(c) \( (0.5, 1) \)
(d) \( (0.5, 1.0) \)
Answer: a Explanation: The first element is the fractional part and the second element is the integral part of the argument.

MCQs for Modules [current-page:node:field_subject] [current-page:node:field_class]

Students can use these MCQs for Modules to quickly test their knowledge of the chapter. These multiple-choice questions have been designed as per the latest syllabus for [current-page:node:field_class] [current-page:node:field_subject] released by [current-page:node:field_board]. Our expert teachers suggest that you should practice daily and solving these objective questions of Modules to understand the important concepts and better marks in your school tests.

Modules NCERT Based Objective Questions

Our expert teachers have designed these [current-page:node:field_subject] MCQs based on the official NCERT book for [current-page:node:field_class]. We have identified all questions from the most important topics that are always asked in exams. After solving these, please compare your choices with our provided answers. For better understanding of Modules, you should also refer to our NCERT solutions for [current-page:node:field_class] [current-page:node:field_subject] created by our team.

Online Practice and Revision for Modules [current-page:node:field_subject]

To prepare for your exams you should also take the [current-page:node:field_class] [current-page:node:field_subject] MCQ Test for this chapter on our website. This will help you improve your speed and accuracy and its also free for you. Regular revision of these [current-page:node:field_subject] topics will make you an expert in all important chapters of your course.

FAQs

Where can I access latest Python Modules MCQs with Answers Set 01?

You can get most exhaustive Python Modules MCQs with Answers Set 01 for free on StudiesToday.com. These MCQs for are updated for the 2026-27 academic session as per examination standards.

Are Assertion-Reasoning and Case-Study MCQs included in the [current-page:node:field_subject] [current-page:node:field_class] material?

Yes, our Python Modules MCQs with Answers Set 01 include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the paper is now competency-based.

How do practicing [current-page:node:field_subject] MCQs help in scoring full marks in [current-page:node:field_class] exams?

By solving our Python Modules MCQs with Answers Set 01, students can improve their accuracy and speed which is important as objective questions provide a chance to secure 100% marks in the .

Do you provide answers and explanations for Python Modules MCQs with Answers Set 01?

Yes, MCQs for have answer key and brief explanations to help students understand logic behind the correct option as its important for 2026 competency-focused exams.

Can I practice these [current-page:node:field_subject] [current-page:node:field_class] MCQs online?

Yes, you can also access online interactive tests for Python Modules MCQs with Answers Set 01 on StudiesToday.com as they provide instant answers and score to help you track your progress in .