12 Cs 2023-24 QP PB Ism Set3 Ms
12 Cs 2023-24 QP PB Ism Set3 Ms
MARKING SCHEME
SET QN.NO VALUE POINTS MARKS
SPLIT UP
3 SECTION A
1. True 1
2. (a) CREATE 1
3. (c) 18 1
4. (c) OASY 1
7. (c)Book.update(Library) 1
9. (a) tup1[2] = 20 1
13. True 1
Page 1 of 6
16. (c) f.seek(20,1) 1
17. (b) Both A and R are true and R is not the correct explanation for A 1
18. (a) Both A and R are true and R is the correct explanation for A 1
SECTION B
OR
(i) Advantages of Bus topology
Easy to implement and extend
It is very cost-effective as compared to other network
Advantages of Star topology
Ease of service
Centralized control
Easy to diagnose faults
-Any one advantage of each – ½ Mark each
(ii) Packet switching:
no dedicated path is established from the source to the destination.
message is divided into smaller parts, known as packets and then
sent forward
tight upper limit on block size
Each data unit knows only the final receiver’s address
– 1 Mark
Page 2 of 6
21. def VOWELS(STR): 2
c=0
for i in STR:
if i in "aeiouAEIOU":
c+=1
return c
OR
CITY={1:"Sydney",2:"Tokyo",3:"Pinkcity",4:"Beijing",5:"Suncity"}
def countCity(CITY):
for ct in CITY.values():
if len(ct)>7:
print(ct.upper())
countCity(CITY)
Input – ½ Mark
Correct Logic 1-Mark
Print – ½ Mark
22. ['C', 'C++', 'Python', 'FORTRAN'] – ½ Mark each value 2
OR
SECTION C
26. OUTPUT 3
A*GM**y* - Correct output 3 Marks
Page 3 of 6
(iii) PNO NAME - 1 Mark
-------------------
P101 Kavita
P103 Sunil
P106 Varun
OR
def countUpper():
count = 0
file=open('Notes.txt','r')
data = file.read()
for i in data:
if i.isupper():
count+=1
print("Number of uppercase characters",count)
file.close()
(½ Mark for correctly opening and closing the file
2 Marks for correct logic
½ Mark for displaying the correct output)
SECTION D
Page 4 of 6
(iv) SELECT TCODE,COUNT(*) FROM ITEMS GROUP BY TCODE;
-1Mark each
32. (i) addrec( ) – defines and calls 4
½ mark for accepting data correctly
½ mark for opening and closing file
1 mark correct logic
(ii) searchrec( )-defines and calls
½ mark for opening and closing file
½ mark for reader object
1 mark correct logic
SECTION E
MANGLORE OFFICE
DELHI
90 m 90m
HEAD
OFFICE
ADMIN TRAINING
25m
50m
50 m mm
RESOURCE
FINANCE
E
(i) Total cable length = 165 m may be considered as cable length is short.
-1 Mark for the correct layout
(ii) The most suitable place to house the server is the TRAINING building.
In the TRAINING building we have the maximum number of computers
installed (150 no’s), so as per the 80 - 20 network design rule the server
should be placed in that building where the network traffic is maximum
localized which reduces the cabling cost and increases the efficiency.
- 1 Mark
(iii)
Repeater is needed in bus layout between ADMIN and TRAINING
building because according to this layout the distance between
buildings ADMIN and TRAINING is 90mts. - ½ Mark
Switch is to be installed in each building as it gives connectivity to all
computers in the network with dedicated band width. -½ Mark
(iv) Microwave -( 1 Mark)
(v) WAN – as the network is spread across different geographical
locations of the country. -1 Mark
Page 5 of 6
34. (i) r+ (read and write)- File must exist, otherwise error is raised. The 2+3=5
file pointer placed at the beginning of the file
a+(append and read)- File is created if does not exist.
If file exist new data is added after old data of file.
– 1 Mark each
(ii) Opening and closing file – ½ Mark
Correct try and except block – ½ Mark
Correct loop and correct copying data – 1½ Marks
Correct return statement – ½ Mark
OR
(i) Text file
● can be viewed in the text editor
● No specific module required to be imported
Binary file:
Extension is .dat
Not human readable
Stores data in the form of 0s and 1s
Correct difference – 1 Mark each
35. (i) Cartesian product It return all possible concatenation of all rows 1+4=5
from both table i.e. one row of First table is joined with all the rows
of second table. -1 Mark
Page 6 of 6