Cs Xii Ms pb2 Set1
Cs Xii Ms pb2 Set1
MARKING SCHEME
10 (c) f.seek(0) 1
11 False 1
12 (b) 300 1
200
13 ALTER 1
14 (c) Details of all employees with "abc" anywhere in their name. 1
15 (b) 25000 1
16 (a) SELECT * FROM Employee WHERE salary > 30000; 1
17 Modem 1
18 (b) POP3 1
19 (b) High delay and variable transmission rates 1
20 (B) Both A and R are true and R is not the correct explanation for A. 1
21 (D) A is False but R is True
len(L1)
L1.sort(reverse=True)
OR
L1.extend(L2)
L2.pop(5)
POSSIBLE OUTPUT(S):
27 (i) A) To apply a constraint so that no column can have NULL values except 2
for one row, a possible solution could be:
28 • Coaxial Cable: 2
o Uses copper to transmit data.
o Suitable for short-distance communication.
o More prone to electromagnetic interference.
• Optical Fiber:
o Uses light to transmit data.
o Provides faster speeds over longer distances.
o Immune to electromagnetic interference.
OR
Devices:
Def display_lines_with_five_words():
with open('Result.txt', 'r') as file:
for line in file:
if len(line.split()) >= 5:
print(line.strip())
OR
def counting():
count = 0
with open('Book.txt', 'r') as file:
for line in file:
count += line.split().count('The')
print(count)
30 (i) Push students with marks > 90: 3
def pop_star(StarStudents):
if StarStudents:
return StarStudents.pop()
else:
print("Underflow")
def peek_star(StarStudents):
if StarStudents:
print(StarStudents[-1])
else:
print("None")
31 15@ 2+1
7@
9@
OR
1#2#3#
1#2#3#
1#
32 • i) To display total quantity sold in Qtr 3: 3
iv)
Wname Price Qtr
High Time 1200 1
Wave 780 3
• CSV Files store data in a plain text format with values separated by
commas.
• Binary Files store data in a non-human-readable format and are
typically more efficient for large data storage.
34000