SHREE NIKETAN PATASALA (CBSE) SCHOOLS
CLASS XI / COMPUTER SCIENCE /WORKSHEET NO. 3/ 2024-25
Posting Date: 21.12.24 Submission Date : 23.12.24
Time Allotted: 45 minutes Maximum marks: 20
PYTHON MODULES
SECTION A-10*1=10
1.A Python ------------is a collection of modules and packages.
2. The--------------- statement reads a module file and makes its contents
available for use.
3. -------- function returns a set of data values that appear most often
in a data set.
4. -------- function returns the closest integer value greater than or
equal to a floating point number.
5. A module can be classified as either --------- or -----------
6. ----------- function is used to get all information about module, i.e.,
name of all functions, variables, etc, available in that module.
7. ------------ returns the closest integer value less than or equal to a
floating point number.
8. math.sqrt(x) returns a ---------- if x is a negative number.
9. Assertion (A): The randint() method returns an integer from the
specified range.
Reasoning (R): The syntax for randint() is: random.randint
(start:stop)
1. Both A and R are true and R is the correct explanation of A.
2. Both A and R are true but R is not the correct explanation of A.
3. A is true but R is false.
4. A is false but R is true.
.
10. Assertion (A): The random module is a built-in module to
generate pseudorandom variables.
Reasoning (R): The randrange() function is used to generate a
random number between the specified range in its parameter.
1. Both A and R are true and R is the correct explanation of A.
2. Both A and R are true but R is not the correct explanation of A.
3. A is true but R is false.
4. A is false but R is true.
SECTION B(5*2=10)
11.Write a python program to find volume of cylinder by importing
math module?
12. Write a python program to calculate E=mc 2 importing math
module?
13.Compare and contrast ceil() and floor function?
14.Give the syntax of 3 randomgeneratot functions.
15.Write python expressions for mathematical expressions
a)(cos z/tan z)+z
b)s+q/(t+p)3