0% found this document useful (0 votes)
30 views6 pages

XII-CS-MS-PB-1

Uploaded by

spchithra2008
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)
30 views6 pages

XII-CS-MS-PB-1

Uploaded by

spchithra2008
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/ 6

PRE BOARD EXAMINATION – (2023-24)

CHANDIGARH REGION
CLASS : XII
SUBJECT: COMPUTER SCIENCE (083)
TIME: 3 HRS MARKING SCHEME MM:70

Ques. Question Marks


No.
SECTION A
1 1
Ans: TRUE
2 Ans: a 1

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

18 Ans: c A is True but R is False 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

27 (i) CHESS 1*3=3


CRICKET
VOLLEYBALL
KARATE
(ii) AMRITA CHESS
AMINA CHESS
(iii) MEENA 23 1000
AMINA 36 1100
28 Write a function in Python to read a text file, Story.txtand displaysthose lines which 3
begin with the word ‘Once’.
Ans:
def test():
file = open("story.txt","r")
ch = file.readlines()
for line in ch:
L = line.split()
if L[0]=="once":
print(line)
OR

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

( ½ mark for correctly opening and closing the file


½ for readlines()
½ mar for correct loop
½ for correct if statement
½ mark for correctly incrementing count
½ mark for displaying the correct output)

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

½ mark for accepting data correctly


½ mark for opening and closing file
½ mark for writing headings
½ mark for writing row
½ mark for accepting data correctly
½ mark for opening and closing file
½ mark for writing headings
½ mark for writing row
SECTION E
33 (i). Admin Block.
(ii). 1 mark for correct layout.
(iii). Switch / Hub.
(iv) Ethernet Cable
(v) Firewall.

34 (i) 2 marks for correct definition


(ii) 3 marks for correct function

35 Row is called as tuple in relational data model.

[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

½ mark for importing correct module


1 mark for correct connect()
½ mark for correctly accepting the input
1 ½ mark for correctly executing the query
½ mark for correctly using commit()

[6]

You might also like