0% found this document useful (0 votes)
25 views12 pages

Xii - Computer Science - EVENING

This document provides a marking scheme for a pre-board exam for class 12 computer science students. It lists 30 questions, each worth 1 mark, for a total of 70 marks. For each question, it indicates the answer and distribution of marks. It also provides two alternative questions for a few multi-part questions that would receive the same marks.

Uploaded by

pasumit158
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)
25 views12 pages

Xii - Computer Science - EVENING

This document provides a marking scheme for a pre-board exam for class 12 computer science students. It lists 30 questions, each worth 1 mark, for a total of 70 marks. For each question, it indicates the answer and distribution of marks. It also provides two alternative questions for a few multi-part questions that would receive the same marks.

Uploaded by

pasumit158
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/ 12

No.

of pages - 12 (E)
MARKING SCHEME
PRE-BOARD EXAMINATION (2023-24)
CLASS : XII
SUBJECT: COMPUTER SCIENCE (083)
Time Allowed : 3 hours Maximum Marks : 70

Note: Partial marks to be awarded in questions where it is possible.

Q Answer Distribution of Total


No. marks marks

1 True 1 mark for correct 1


answer

2 d. 10, 19 1 mark for correct 1


answer

3 c. 2 1 mark for correct 1


answer

4 a. Python-Programming 1 mark for correct 1


answer

5 a. 50,000 1 mark for correct 1


answer

6 d. WAN 1 mark for correct 1


answer

7 b. "Blue" in D2 1 mark for correct 1


answer

1 XII-COMPUTER SC.-E
8 c. Board Pre 1 mark for correct 1
answer

9 a. Statement 1 1 mark for correct 1


answer

10 b. BANANA* 1 mark for correct 1


answer

11 c. Demodulator 1 mark for correct 1


answer

12 a. Underflow 1 mark for correct 1


answer

13 True 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

15 a. Packet 1 mark for correct 1


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

18 (c) A is True but R is False 1 mark for correct 1


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.

(ii) LAN (Local Area Network) is a network confined


1 mark for any
to a small geographic area, while WAN (Wide Area
valid difference
Network) covers a larger, often global, geographic
between LAN and
area.
WAN

20 num = 5 1/2 marks for each 2


4 corrections
factorial = 1

if num < 0:

print("Sorry, factorial does not exist")

elif num == 0:

print("The factorial of 0 is 1")

else:

for i in range(1,num + 1):

factorial = factorial*i

print("The factorial is',factorial)

3 XII-COMPUTER SC.-E
21 def count(): 2 marks for correct 2
function
fname="STORY.TXT"

f=open(fname,'r')

lines=f.readlines()

for line in lines:

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

print("Total number of words",word_count)

count()

22 P4T6O8 2 marks for correct 2


output.

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

24 i. ALTER TABLE COMPUTER DROP column 1 mark each for 2


category; each correct answer

ii. ALTER TABLE COMPUTER ADD Memory char


(10);

OR
OR
i. DESC Market;

ii. DELETE FROM MARKET WHERE


1 mark for each
Market_Id=1023 AND category="Large";
correct answer

25 15@5@[email protected] 2 marks for correct 2


output.

26 YpHth 1.5 marks for 3


correct value of
to2
Text2

1.5 marks for


correct value of
Text3

5 XII-COMPUTER SC.-E
27 (a) 3

DISTINCT SupCode 1 mark for each


output
S01

S02

S03

(b)

MAX(Price) MIN(Price)

1620 400

(c)

Amount

40000

28 def vowelcount(): 3

counter=0

f=open("NewFile.txt",'r')

data=f.read() 3 marks for correct


function
for i in data:

if i.lower() in "aeiou":

counter+=1

print("Count of vowels :",counter)

vowelcount()

6 XII-COMPUTER SC.-E
OR OR

def words():

f=open("Content.txt",'r')

data=f.read() 3 marks for correct


function
word_list=data.split()

for word in word_list:

if len(word)<5:

print(word)

f.close()

words()

29 i. SELECT * FROM EMPLOYEE ORDER BY 1 mark for each 3


JoiningDate; query

ii. SELECT * FROM EMPLOYEE WHERE


DeptCode=3 OR Age>35;

iii. INSERT INTO Employee VALUES


(1005,'Insha',2,26,80000,'2023-05-05')

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"]]

1.5 marks for


StudentInfo=[] Pop_student()

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

(b) SELECT Monitor_Name, Capacity FROM School


ORDER BY Capacity ASC;

(c) DELETE FROM School WHERE Teacher="Savita";

(d)ALTER TABLE School ADD No_of_Mon integer;

32 import csv 2 marks for ADD() 4


def ADD(): And
fout=open("books.csv","w",newline="\n") 2 marks for
COUNTER()
wr=csv.writer(fout)
while True:
book_id=int(input("Enter Book Id:"))
name=input("Enter name of the book:")
price=int(input("Enter price:"))
lst=[book_id,name,price]
wr.writerow(lst)
choice=input("Enter more records? (Y/N) : ")
if choice.lower()=='n':
break
fout.close()
def COUNTER():
fin=open("books.csv","r",newline="\n")
data=csv.reader(fin)
d=list(data)
print(len(d))
fin.close()
ADD()
COUNTER()

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

(iv) Satellite Link

(v) Switch

34 (i) 2 mark for the 5


correct difference.
read() reads the entire content of a file as a single string,
while readlines() reads the file line by line in form of a list
of lines.

(ii)

import csv

f=open("Employee.csv","r")

csv_reader=csv.reader(f)

emp_id=input("Enter the employee id :")

found=0
3 mark for correct
for row in csv_reader: program

if(row[0]==emp_id):

print(row)

found=1

if(found == 0):

print('No such record found')

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

file = open("InventoryData.bin", "rb")

item_id = int(input("Enter the item ID to search: "))

found = False

while True: 3 mark for correct


program
try:

inventory_data = pickle.load(file)

if(inventory_data[0]==item_id):

print(inventory_data)

found=True

break

except:

break

if not found:

print("Item not found in the inventory.")

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

You might also like