MCQ Questions For Class 11 Computer Science Python Fundamentals

MCQs Class 11

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

Answer:

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

Answer:

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 

Answer:

C

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

Answer:

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 

Answer:

B

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

Answer:

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 

Answer:

B

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

Answer:

D

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

Answer:

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 

Answer:

A

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

Answer:

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   

Answer:

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 

Answer:

C

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

Answer:

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 

Answer:

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 

Answer:

A

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

Answer:

D

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

Answer:

C

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

Answer:

A

Question: Choose the correct syntax to import all objects of a module.
(a) from module_name import *
(b) from module_name import all
(c) module_name * from import
(d) all module from import 

Answer:

A

MCQ Questions For Class 11 Python Fundamentals