# MCQ Questions For Class 11 Computer Science Python Fundamentals

Check the below NCERT MCQ Class 11 Computer Science Chapter 2 Python Fundamentals with Answers available with PDF free download. MCQ Questions for Class 11 Computer Science with Answers were prepared based on the latest syllabus and examination pattern issued by CBSE, NCERT and KVS. Our teachers have provided below Python Fundamentals Class 11 Computer Science MCQs Questions with answers which will help students to revise and get more marks in exams

## Python Fundamentals Class 11 Computer Science MCQ Questions with Answers

Refer below for MCQ Class 11 Computer Science Chapter2Python Fundamentals with solutions. Solve questions and compare with the answers provided below

Question: Which module is used for pow() to find the power of a number?
(a) random
(b) math
(c) statistics
(d) power  B

B

Question: Identify the correct output of following code.
import math
print (math.floor (153.42))
(a) 153
(b) 154
(c) 154.0
(d) 153.4

A

Question: Which module is used for sqrt () to find the square root of a number?
(a) random
(b) square root
(c) math
(d) statistics

C

Question: The value passed in sin() should be in
(a) degree
(b) meter
(c) inch

D

Question: To include the use of functions which are present in the statistics library, we must use the option
(a) statistics.h
(b) import statistics
(c) import.statistics
(d) statistics.statistics

B

Question: Identify the correct output.
print (pow(−3, 2))
(a) 9
(b) −9
(c) 8
(d) − 8

A

Question: Identify the correct output of >>>import math >>>f = math.floor (145.35) >>> print (f)
(a) 146
(b) 145
(c) 145.3
(d) 145.4

B

Question: Which of the following function always gives output in integer form?
(a) random ()
(b) choice()
(c) mean()
(d) randint()

D

Question: What is returned by math.ceil(7.9)?
(a) 7
(b) 8
(c) 7.0
(d) 9.0

B

Question: What will be the output of the following Python function if the random module has already been imported?
random.randint(3.5,7)
(a) Error
(b) Any integer between 3.5 and 7, including 7
(c) Any integer between 3.5 and 7, excluding 7
(d) The integer closest to the mean of 3.5 and 7

A

Question: Which of the following symbol is used to import all objects of a module?
(a) *
(b) #
(c) @
(d) \$

A

Question: To include the use of functions which are present in the random library, we must use the option
(a) import random
(b) random.h
(c) import.random
(d) random.random

A

Question: What will be the output of the following Python code?
random.randrange(1,100,10)
(a) 32
(b) 67
(c) 91
(d) 80

C

Question: Which extension is used to save the Python code file?
(a) .Python
(b) .py
(c) .p
(d) .pyth

B

Question: What will be the output of the following Python code?
random.randrange(0,91,5)
(a) 10
(b) 18
(c) 79
(d) 95

A

Case Based MCQs

Question: A Python module is a file containing Python definitions and statements. A module can define functions, classes and variables. A module can also include runnable code. Grouping related code into a module makes the code easier to understand and use. It also makes the code logically organised.
When you import a module, the Python interpreter searches for the module in the following sequences.
♦ The current directory.
♦ If the module isn’t found, Python then searches each directory in the shell variable PYTHONPATH.
♦ If all else fails Python checks the default path. On UNIX, this default path is normally/usr/local/lib/ python/.

Question: Which of the following module is used in Python?
(a) math
(b) pie
(c) statistics
(d) square root

A

Question:To import multiple objects, which symbol is used to write multiple objects?
(a) #
(b) :
(c) ;
(d) ,

D

Question: Which of the following module is used for mean(), mode () and median()?
(a) math
(b) arithmetic
(c) statistics
(d) random

C

Question: Which keyword is used to import the module?
(a) import
(b) import_module
(c) module
(d) Any of the above