0% found this document useful (0 votes)
829 views7 pages

2023-24 - Class-Xii - Cbse Computer Science - Sample Paper-Ii - Key

This document appears to be a sample answer key for a computer science exam. It contains multiple choice and other types of questions across several sections on topics like SQL, Python, and databases. Marks are allocated for each question or part of a question. Sample outputs or answers are provided for questions that require code or query writing.

Uploaded by

C1A 05 Ashwina J
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)
829 views7 pages

2023-24 - Class-Xii - Cbse Computer Science - Sample Paper-Ii - Key

This document appears to be a sample answer key for a computer science exam. It contains multiple choice and other types of questions across several sections on topics like SQL, Python, and databases. Marks are allocated for each question or part of a question. Sample outputs or answers are provided for questions that require code or query writing.

Uploaded by

C1A 05 Ashwina J
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

SAMPLE PAPER – II _KEY

CLASS XII – COMPUTER SCIENCE (083)


MARKING SCHEME
TIME ALLOTED : 3 HRS MAX. MARKS : 70

Qno Question and Answers Distributi Total


on of Marks
Marks
SECTION – A

1 False 1 mark for 1


correct
answer
2 a) AND, OR, NOT 1 mark for 1
correct
answer
3 c) 30.6 1 mark for 1
correct
answer
4 cbse@in 1 mark for 1
correct
answer
5 b) PRIMARY KEY 1 mark for 1
correct
answer
6 c) TELNET 1 mark for 1
correct
answer
7 c) [1, 4, 8] 1 mark for 1
correct
answer
8 a) 30@otnm 1 mark for 1
correct
answer
9 d) statement 4 1 mark for 1
correct
answer
10 c) 91 1 mark for 1
correct
answer
11 b) Coaxial cable 1 mark for 1
correct
answer
12 a) 15 1 mark for 1
15 correct
answer
13 c) raise 1

14 c) IS operator 1

15 a) Broadcast device 1

16 d) resultset 1

17 (d) A is false but R is True 1

18 (a) Both A and R are true and R is the correct explanation for A 1

SECTION – B
19 a) SMTP : Simple Mail Transfer Protocol 2
b) VoIP : Voice Over Internet Protocol
Star topology has a single point of failure. If the central hub or
switch fails,
the entire network will be down. This can be a major problem for
networks
that require high availability. Or any other dis advantage.
OR

Hub is an electronic device that connects several nodes to form


a network and redirect the received information to all the nodes
in a broadcast mode. Whereas Switch is an intelligent device
that connects several nodes to form a network and redirect the
received information only to the intended node(s).

MAC address (media access control address) is a 12-digit


hexadecimal
number assigned to each device connected to the network. Primarily
specified as
a unique identifier during device manufacturing, the MAC address is
often
found on a device's network interface card (NIC).

20 L = [1,2,1,1,2,1,2,3,5,4,1,2,5,4,4,5] 2
D = {}
for x in L:
if x in D:
D[x]+=1
else:
D[x]=1

21 Output : **m2m202 2

(OR)

output :
Original String : success
Hello
Changed String : su!ce@
22 Output: 2

def lenLines(STRING):
t=()
L=[Link]()
for line in L:
length=len(line)
t=t+(length,)
return t
STRING='Welcome to India'
s=lenLines(STRING)
print(s)

23 Output: 2
(i) [Link](1,100)
(ii) [Link]()

OR

(a) Output: tral tral


(b) output:
dict_items([('empname', 'Virat'), ('address', 'Delhi')])

24 Output: 2
select * from student where fee IS NULL;
OR
Alter table query
25 50#5 2
SECTION C
26 3
Output:

cbse#bBAaD#eEAa#####

27 Output: (2+1) 3

Based on the above table , Write SQL command for the following :
i) SELECT * FROM TEACHER WHERE DEPT=’MATHS’;
ii) SELECT NAME,DEPT FROM TEACHER WHERE NAME
LIKE ‘M%’;
iii) SELECT * FROM TEACHER WHERE SEX=’F’ AND
SALARY BETWEEN
35000 AND 50000 ;

28 def count_word(): 3
count=0
f=open("[Link]","r")
contents=[Link]()
word=[Link]()
for i in word:
if i==’can’:
count+=1
print("Number of words in the File is :",count )
[Link]()
count_word()

Correct function prototype ½ mark


Correct opening text file statement ½ mark
Correct logic 1 and ½ marks
Closing the file ½ mark

OR

def SHOWWORD () :
c=0
file=open(‘[Link],'r')
line = [Link]()
word = [Link]()
for w in word:
if len(w)<5:
print( w)
[Link]()

29 3

30 3

SECTION -D
31 Output: 4
i)SELECT SUM (PERIODS), SUBJECT FROM SCHOOL GROUP
BY SUBJECT ;
ii) SELECT MIN(EXPERIENCE), MAX(CODE) FROM SCHOOL;
iii)SELECT TEACHERNAME, GENDER FROM SCHOOL,
ADMIN WHERE
DESIGNATION = ‘COORDINATOR’ AND
[Link]=[Link];
iv)SELECT COUNT(DISTINCT SUBJECT) FROM SCHOOL;
(1 mark for each correct query)

32 4

SECTION -E
33 Ans: 5

34 5
Ans:
i) What is Pickling or Serialization?
The process of converting Python object hierarchy into byte stream
so that it can
be written into a file.
ii) A binary file “[Link]” has structure [employee id, employee
name, salary]. Write a function countrec() in Python that would read
contents of the file “[Link]” and display the details of those
employee whose salary is above 20000.
OR
I) r is used to read text files and rb is used to read binary files
II)

35 i) 5
Degree: The total number of attributes which in the relation is called
the
degree of the relation.
Cardinality: Total number of rows present in the Table.
(any suitable example)
ii)

i) [' and y', 'u will !']

ii) import [Link] as myc


con = [Link](host="locahost", user="root", passwd="",
database="mydb")
mycursor = [Link]( )
sql = "UPDATE student SET age=age+2 WHERE class='12'"
[Link](sql)
sql = "SELECT * FROM student"
mycursor=[Link](sql)
result = [Link]( )
for row in result:
print(row)
*******END OF PAPER*******

You might also like