0% found this document useful (0 votes)
8 views

Class Xii Computer Science Final Mock Test Paper Ms

Uploaded by

mdhazbro
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Class Xii Computer Science Final Mock Test Paper Ms

Uploaded by

mdhazbro
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

FINAL MOCK TEST PAPER FOR BOARD EXAM 2024

COMPUTER SCIENCE (083)


CLASS XII
MARKING SCHEME

Time allowed: 3 Hours Maximum Marks: 70

General Instructions:

 Please check this question paper contains 35 questions.


 The paper is divided into 4 Sections- A, B, C, D and E.
 Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark.
 Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.
 Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks.
 Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks.
 Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks.
 All programming questions are to be answered using Python Language only.

Que s. Question Marks


No.
SECTION A
1 False 1
2 Option b
6,20 1
3 Option a 1
4 Option d 1
5 Option b 1
6 Option c 1
7 Option b 1
8 Option b 1
9 Option d 1
10 Option a and d 1
11 Option a 1
12 Option a 1
13 Option d 1
14 Option c 1
15 Option a 1
16 True 1
17 Option (a) 1
18 Option C 1
19 2 Marks for correct answer
2
20
def prime():
n=int(input("Enter number to check :: ")) #bracket missing 2

Page No. 1
for i in range (2, n//2):
if n%i==0: # = missing
print("Number is not prime \n")
break #wrong indent
else:
print("Number is prime \n”) # quote mismatch
(½ mark for each correct correction made and underlined.)
21 PLACES= ["Delhi","London","Paris","New York","Doha"]
def countNow(PLACES):
for p in PLACES :
if len(p) >5 :
print(p.upper())
countNow(PLACES)

OR
STRING="Come let us have some fun"

def lenWords( STRING) :


t = ()
s = STRING.split()
for w in s:
length = len ( w)
t = t + (length,)
print (t)
lenWords(STRING)
Note: Any other correct logic may be marked 2
22 Ans: (22,44,66) 2
23 i. L1.pop(1)
ii. L1.insert(1, 'orange')
OR
import statistics
print( statistics.mode(studentAge) ) 2
24 2 Marks for correct answer 2
25 20$4 2
26 65#70@ 3
27 i. COUNT(DISTINCT START)
2

T_ID FARE
ii. 101 4500
102 4000

iii. T_ID T_DATE


101 2021-12-25
103 2020-12-10 3

Page No. 2
28

OR

Note: Any other correct logic may be marked 3


29 i. Update loan set amount = amount + amount*10/100;
ii. select loan_no, amount * 12/100 'monthly interest' from loan;
iii. delete from loan where amount < 4000 ; 3
30

Note: Any other correct logic may be marked 3


31 i. select PROD_NAME, QTY_SOLD from computer c, sales s
where c.PROD_ID = s. PROD_ID ;
ii. desc computer;
iii. drop table sales;
iv. select QUARTER , sum( QTY_SOLD) from sales group by quarter; 4
32
i. Advantage of a csv file:
 It is human readable – can be opened in Excel and Notepad applications
 It is just like text file

ii. Program:
import csv
def ADD():
fout=open("record.csv","a",newline="\n")
wr=csv.writer(fout)
empid=int(input("Enter Employee id :: "))
name=input("Enter name :: ")
mobile=int(input("Enter mobile number :: "))
lst=[empid,name,mobile] ---------1/2 mark 4
Page No. 3
wr.writerow(lst) ---------1/2 mark
fout.close()
def COUNTR():
fin=open("record.csv","r",newline="\n")
data=csv.reader(fin)
d=list(data)
print(len(d))
fin.close()
ADD()
COUNTR()
(1 mark for advantage
½ mark for importing csv module
1 ½ marks each for correct definition of ADD() and COUNTR()
½ mark for function call statements)

OR
Difference between binary file and csv file: (Any one difference may be given)
Binary file:

 Extension is .dat
 Not human readable
 Stores data in the form of 0s and 1s

CSV file
 Extension is .csv
 Human readable
 Stores data like a text file

Program:
import csv
def add():
fout=open("furdata.csv","a",newline='\n')
wr=csv.writer(fout)
fid=int(input("Enter Furniture Id :: "))
fname=input("Enter Furniture name :: ")
fprice=int(input("Enter price :: "))
FD=[fid,fname,fprice]
wr.writerow(FD)
fout.close()
def search():
fin=open("furdata.csv","r",newline='\n')
data=csv.reader(fin)
found=False
print("The Details are")
for i in data:
if int(i[2])>10000:
found=True
print(i[0],i[1],i[2])
if found==False:
print("Record not found")
fin.close()
Page No. 4
add()
print("Now displaying")
search()
(1 mark for difference
½ mark for importing csv module
1 ½ marks each for correct definition of add() and search()
½ mark for function call statements
)
33 i. Building 3 , Maximum no of Computers ½ Mark for Naming and ½ for reason.
ii. Any suitable layout 1 Mark for correct layout.
iii. i. switch in all buildings, as more than one computers used.
ii. Repeater from Building 1 to Building 3, as distance is more than 100 m.
iv. Optical Fiber, can be used for high speed wired connection.
v. Telnet 1x5 =5
34 (i)

r+ mode:
1) Primary function is reading
2) File pointer is at beginning of file
3) if the file does not exist, it results in an error

w+ mode:
1) primary function is writing
2) if the file does not exist, it creates a new file.
3) If the file exists, previous data is overwritten
4) File pointer is at the beginning of file

(ii)

OR
(i) Text files:
a. Extension is .txt
b. Data is stored in ASCII format that is human readable
c. Has EOL character that terminates each line of data stored in the text files

Binary Files 5
Page No. 5
a. Extension is .dat
b. Data is stored in binary form (0s and 1s), that is not human readable.
ii.

Note: Any other correct logic may be marked

35 i. One marks for correct difference.


ii.

Note: Any other correct logic may be marked

OR
i. One marks for correct difference.
ii.
Statement 1:
mysql.connector
Statement 2:
con1.cursor()
Statement 3:
mycursor.execute("select * from student where Marks>75")
Statement 4:
con1.commit() 1+4=5

Page No. 6

You might also like