Xii - Computer Science - EVENING
Xii - Computer Science - EVENING
of pages - 12 (E)
MARKING SCHEME
PRE-BOARD EXAMINATION (2023-24)
CLASS : XII
SUBJECT: COMPUTER SCIENCE (083)
Time Allowed : 3 hours Maximum Marks : 70
1 XII-COMPUTER SC.-E
8 c. Board Pre 1 mark for correct 1
answer
14 b. A primary key uniquely identifies each record (row) in a 1 mark for correct 1
table. answer
16 b. To return the current position of the file pointer. 1 mark for correct 1
answer
17 (b) Both A and R are true and R is not the correct explanation 1 mark for correct 1
for A answer
2 XII-COMPUTER SC.-E
19 (i) 1/2 mark for each 2
full form
a) File Transfer Protocol,
1 mark for role of
b) Transmission Control Protocol
web server
(ii) The role of a web server is to handle client
requests, process them, and deliver web content to
users' browsers over the internet.
OR OR
(i) The role of a web browser is to retrieve and display 1 mark for any use
web content, interpret HTML, and render websites for of web browser
users.
if num < 0:
elif num == 0:
else:
factorial = factorial*i
3 XII-COMPUTER SC.-E
21 def count(): 2 marks for correct 2
function
fname="STORY.TXT"
f=open(fname,'r')
lines=f.readlines()
if line[0].lower()=="j":
print(line.strip())
f.close()
count()
OR
OR
def count():
2 marks for correct
f=open("KIDS.TXT",'r')
function
data=f.read()
word_count=len(data.split())
count()
4 XII-COMPUTER SC.-E
23 a) L1.insert(3,3) 1 mark each correct 2
answer
b) str.replace("o","i")
OR
OR
1 mark each correct
a) index()
answer
b) split()
OR
OR
i. DESC Market;
5 XII-COMPUTER SC.-E
27 (a) 3
S02
S03
(b)
MAX(Price) MIN(Price)
1620 400
(c)
Amount
40000
28 def vowelcount(): 3
counter=0
f=open("NewFile.txt",'r')
if i.lower() in "aeiou":
counter+=1
vowelcount()
6 XII-COMPUTER SC.-E
OR OR
def words():
f=open("Content.txt",'r')
if len(word)<5:
print(word)
f.close()
words()
7 XII-COMPUTER SC.-E
30 stud=[["Akanksha",98,"Mathematics"], 1.5 mark for 3
["Priti",96,"Science"], ["Garima",99,"Science"], Push_student()
["Ayushi",78,"English"]]
def Push_student(stud):
for x in stud:
if x[2].lower()=='science':
lst=[x[0],x[1]]
StudentInfo.append(lst)
def Pop_student():
while True:
if StudentInfo:
print(StudentInfo.pop())
else:
print("Empty stack")
break
Push_student(stud)
Pop_student()
8 XII-COMPUTER SC.-E
31 (a) SELECT Monitor_Name FROM School WHERE 1 mark for each 4
Teacher="Savita"; query
9 XII-COMPUTER SC.-E
33 (i) Finance block because it has maximum no of 1 mark for each 5
computers.
(ii) LAN
(iii) Finance
HR Conference
(v) Switch
(ii)
import csv
f=open("Employee.csv","r")
csv_reader=csv.reader(f)
found=0
3 mark for correct
for row in csv_reader: program
if(row[0]==emp_id):
print(row)
found=1
if(found == 0):
10 XII-COMPUTER SC.-E
OR OR
(i)
r+ mode is for reading and writing a text file, while rb+ 2 mark for the
mode is for reading and writing a binary file. correct difference.
(ii)
import pickle
found = False
inventory_data = pickle.load(file)
if(inventory_data[0]==item_id):
print(inventory_data)
found=True
break
except:
break
if not found:
file.close()
11 XII-COMPUTER SC.-E
35 a) mysql.connector 1+1+1+1+1 5
b) mycon
c) con_obj
d) execute
e) mycur
OR
a) mysql.connector
b) connect
c) cursor()
d) cursor.execute(query)
e) connection.commit()
12 XII-COMPUTER SC.-E