XII-CS-MS-PB-1
XII-CS-MS-PB-1
CHANDIGARH REGION
CLASS : XII
SUBJECT: COMPUTER SCIENCE (083)
TIME: 3 HRS MARKING SCHEME MM:70
3 Ans: c 1
4 Ans: a: 1
5 1
Ans: d
6 1
Ans : b
7 1
Ans: a
8 1
Ans: d
9 Ans: b 1
10 1
Ans: b
11 1
Ans: c
12 Ans: c 1
13 False 1
14 1
Ans: d
15 1
Ans: Packet Switching
16 1
Ans: a
17 Ans: a Both A and R are true and R is the correct explanation for A 1
[1]
SECTION B
19 Expand the following terms related to Computer Networks: 1+1=2
i.
a. SMTP – SIMPLE MAIL TRANSFER PROTOCOL
b. POP – POST OFFICE PROTOCOL OR POINT OF PRESENCE
ii. optical Fibre and Microwave
OR
i. CORRECT DEFINITION FULL MARKS. 1 MARK FOR PARTIAL
CORRECT
ii. ½ mark for Advantage, ½ mark for disadvantage
20 def oddtoeven(L): 2
for i in range(len(L)):
if(L[i]%2 !=0):
L[i] = L[i]*2
print(L)
½ mark for each correction.
21 Ans: 2
OR
Ans:
22 Ans: 2
4#F
31#2
23#F
12#4
23 Ans: 8 # 40 # 29 # 13 # 1+1=2
OR
unchanged(30, 50)
changed(16, 50)
unchanged(16, 22)
changed(11, 22)
24 Ans: Alter Table Employee Add Primary Key(Empno); 2
[2]
OR
Alter Table School Change sid Student_id int Primary key;
25 Ans: 2
Before calling fun2: 100
x in func()2 200
After calling fun2: 100
x in main:
SECTION C
26 3
pYTHOn#@#.1
Write a method COUNTLINES() in Python to read lines from text file ‘FILE.TXT’ and
display the no. of lines which are starting with any vowel.
Ans:
def COUNTLINES() :
file = open ('TESTFILE.TXT','r')
lines = file.readlines()
count=0
for w in lines :
if (w[0]).lower() in 'aeoiu'count = count + 1
print ("The number of lines starting with anyvowel: ", count)
[3]
file.close()
29 Based on the given table, write SQL queries for the following: 1*3=3
(i) Update HRM set salary = salary*1.05 where incentive I NULL;
(ii) Select name,salary + incentive as “Total Salary” from HRM;
(iii) nDelete from HRM where designation = “supervisor” and salary < 50000;
30 3
SECTION D
31 Write SQL queries : 5
i. Select Iname,Cname from item,company where Item.cid = company.cid;
ii. Describe item.
iii. Select Cid,max(rating) from Item group by cid;
iv. Select iname,price,rating from item order by rating asc.
[4]
32 4
[5]
OR
Primary key can never be NULL but UNIQUE can be NULL. Primary Key can be only
one in a table. Unique can be applied on more than one column
[6]