Python Libraries MCQ for CBSE Class 12 Computer Science students. Important Objective Questions from NCERT and Sumita Arora Python Book for examination point of view.
Q.1. What does cmath module provides.
1) C language mathematical function
2) Mathematical functions for complex numbers
3) Non-Mathematical functions for complex functions
4) it is a function
Show Answer
Q.2. SciPy libraries offers
1. Movies graphic file
2. Algorithmic and mathematical tools for scientific calculations.
3. Science fiction vedios
4. Algoritmic calculation for betting.
Show Answer
Q.3. tkinter library- provides Python user interface tool kit and helps you to create user friendly GUI interface for different types of applications.
1. True
2. False
Show Answer
Q.4. Which library offers many functions and tools to produce quality output in variety of formats such as plot, Charts,Graph etc.
1. Numpy Library
2. Scipy ibra Library
3. Thinter Library
4. Malplotlib library
Show Answer
Q.5. Random is a standard library function.
1. True
2. False
Show Answer
Q.6. Random() it returns floating point number in the range of
1. Any floating value in range of , 0.0<=N<999999999999999999.999999
2. Any floating value in range of , -999999999.99<=N<999999999999999999.999999
3. Any floating value in range of , 0.0<=N<1.0
4. Any floating value in range of , 1.0<=N<999999999999999999.999999
Show Answer
Q.7. Randomint(a,b) it returns a random integer in the range of (a,b) .
1. true
2. false
Show Answer
Q.8. Which file should be a folder part to be recognized as a package.
1. ____main_____
2. ____int______
3. ____float____
4. ____init_____
Show Answer
Q.9.In Python, A library refers to –
a) a collection of modules that together cater to specific type of needs or application.
b) where books are stored.
c) place to write application
d) Questioning functions
Show Answer
Good Going carry on Python Libraries MCQ for CBSE Class 12 attempting
Q.10.There are two forms of import statement
i) import<modulename>
ii) from<module>import <object>
a) True
b) False
Show Answer
Q.11. Which of the following is not a valid namespace?
(a) Global namespace
(b) Public namespace
(c) Built-in namespace
(d) Local namespace
Show Answer
Q.12. What will be the output of the following Python code?
#modules
def change (a):
b=[x * 2 for x in a]
print (b)
#module 2
def change (a):
b= (x*x for x in a)
print (b)
from module import change
from module2 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 cash
Show Answer
Q.13. What possible output(s) are expected to be displayed on screen at the time of execution of the program from the following code?
import random
AR = [ 20, 30, 40, 50, 60, 70]
FROM = random.randint (1, 3)
TO = random.randint (2, 4)
for K in range (FROM, TO+1):
print (AR[K], end = “#”)
(a) 10#40#70#
(b) 30#40#50#
(c) 50#60#70#
(d) 40#50#70#
Show Answer
Q.14. The help <module> statement displays ____ from a module.
(a) constants
(b) functions
(c) classes
(d) docstrings
Show Answer
Q.15. Which of the following random module functions generates a floating point number?
(a) random()
(b) randint()
(c) uniform()
(d) all of these
Show Answer
Thank you for attempting Python Libraries MCQ for CBSE Class 12 !!!
Using Python Libraries Class 12 : Solved Assignment – CS Study
good stuff
Thanks
Stuff is great but question 13 has error
the output on running is 40#50# and in print statement it should be AR[K]
The question ask for probable output. The print error has been fixed.
Sorry the output is right, i misunderstood the function… but the error is in print statement
Thankyou, for your valuable comment. The error has been solved.