0% found this document useful (0 votes)
59 views4 pages

XII CS PractisePaper 7

The document provides a blueprint and sample paper for a Class XII Computer Science periodic test. The blueprint outlines the chapters covered, total marks, and breakdown of marks by question type (very short answer, short answer, long answer, very long answer). The sample paper contains 9 multiple choice and long answer questions covering topics like functions, libraries, parameters, and built-in math functions. It also includes a marking scheme that outlines the points awarded for each part of the questions.

Uploaded by

ekta shroff
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views4 pages

XII CS PractisePaper 7

The document provides a blueprint and sample paper for a Class XII Computer Science periodic test. The blueprint outlines the chapters covered, total marks, and breakdown of marks by question type (very short answer, short answer, long answer, very long answer). The sample paper contains 9 multiple choice and long answer questions covering topics like functions, libraries, parameters, and built-in math functions. It also includes a marking scheme that outlines the points awarded for each part of the questions.

Uploaded by

ekta shroff
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

SAMPLE PAPER-I CLASS XII (COMPUTER SCIENCE) PERIODIC TEST-I

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)

Q3. State the difference between: (8)


a) Calling a function by value and Calling a function by reference
b) Formal parameters and actual parameters
c) Local variables and global variables
d) Immutable objects and mutable objects

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 ))

b) def sum(*n): d) def sum(a=1,b):


for i in n: return a+b
total+=I print (sum(10,20))
return total
print (sum(4,3,2,1,7,8,9))
Q5. State the advantages of using functions in python. Support your answer with an (3)
example.

Q6. State the use of global keyword. Give an example to illustrate its use. (3)

Q7. Write the types of user defined functions (2)

Q8. Write a program using user defined function to :


a) Check if a number entered by the user to check whether a number is in a given (3)
range or not. Range may be of programmer’s choice.

b) Calculate and display average of all the elements in a user defined tuple (4)
containing numbers.

c) Calculate sum of any 10 numbers using variable argument. (3)

Q9. Write the output of the following statements: (4)

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy