XII CS PractisePaper 7
XII CS PractisePaper 7
Blueprint
S.NO. NAME OF CHAPTERS TOTAL VSA(1 SA(2 LA(3 VLA(4
MARKS MARKS) MARKS) MARKS) MARKS)
1 REVISION OF XI –I 5 1(1) 2(2) ---- ----
2 REVISION OF XI – II 5 1(2) --- 3(1)
3 WORKING WITH 23 1(7) 2(3) 3(2) 4(1)
FUNCTIONS
4 USING PYTHON 7 *½(4) *1(3) ---- ---
LIBRARIES
40 14 13 9 4
UNIT TEST - I
CLASS XII
SUBJECT : COMPUTER SCIENCE
Time : 90 mins
Max Marks : 40
Note : a) All questions are compulsory.
b) Give examples wherever possible.
Q1. Name any two libraries in python and also name any two methods from any one of (2)
these libraries.
Q2. Find the error (if any) in the following code and write the corrected code and (2)
underline it :
Def sum(a=1,b)
return a+b
print “The sum =” Sum(7,-1)
Q4. Identify the type one or more types of arguments in the following codes: (6)
a) def sum(a=4,b=6): c) def sum(a=1,b):
return a+b return a+b
print (sum( )) print(sum(b=20, a=5 ))
Q6. State the use of global keyword. Give an example to illustrate its use. (3)
b) Calculate and display average of all the elements in a user defined tuple (4)
containing numbers.
a) string1='Computer Science'
print(string1.islower())
b) import math as m
print(m.ceil(m.trunc(15.890)))
c) string1='Tonight'
print(string1.rstrip('ghti'))
d) import math as m
print(m.pow(5,m.sqrt(100)))
MARKING SCHEME
Q1. Correct Name of Any two Libraries (1 Mark)Correct Name of Any Two Methods (1Mark)
Q2.
def sum(a=1,b=1):
return a+b
print (“The sum =”,sum(7,-1))
( ½ mark for each error Max – 2 marks)
Q3. 1 Mark for each difference :Minimum 2 differences for each
Q4. ½ Mark for each argument type i each part.
Q5. 1 Mark for each advantage of function Minimum 2 Advantages. 1 Mark for example.
Q6. 1 Mark for use. 1 Mark for example and 1 mark for its description.
Q7. ½ Mark for each type.
Q8.
1. ½ mark for function name, ½ mark for arguments, 1 Mark for logic, ½ mark for range , ½
mark for presentation of output.
2. ½ mark for function name, ½ mark for correct arguments, 2 marks for logic for calculating
average, 1 marks for displaying .
3. ½ mark for function name, ½ mark for correct argument(s), 1 mark for calculating sum, 1
mark for displaying .
Q9. 1 Mark for each correct output for each question part.