Set 3 (Ans)
Set 3 (Ans)
COMMON EXAMINATION
CLASS XII
COMPUTER SCIENCE 083/3
MARKING SCHEME
MAX. MARKS: 70 DURATION: 3 HRS.
SECTION – A ( 21 x 1=21)
1. True
2. a) @EVATE YOURS@F
3. 17
4. a) my_dict+you_dict , d) my_dict.join(you_dict)
5. b)orl
6. iterator
7. b) [ ]
8 c) returns the identity of object
9. d) return number
10. F.readline(50)
11. b) DROP DATABASE
12. d) Cartesian Product
13. sector
14. False
15. d) When 1 == "1" is executed, exception is raised
16. d) HTTPS
17 a) add a column
18. d) Co-axial
19. Circuit.
20. (A) Both A and R are true and R is the correct explanation for A
21. (C) A is True but R is False
SECTION– B (7 x 2 = 14)
22. i) Same Equal
$
$
$
$
ii) a) print(S.count(‘c’)
OR
b) print(S.find(‘c’))
23. i) print(my_exam[::2])
ii) a) L1.extend(L2)
OR
b) sorted(L1+L2)
27. Primary key is used to uniquely identify each record in the table. Foreign key is used to establish
and enforce a link between two tables (referential integrity). A table can only have one primary
key (but it can be composite, consisting of multiple columns). A table can have multiple foreign
1|Page
keys referring to primary keys in other tables or even the same table.
28. a) XML: Primarily used for storing and transporting structured data. It is flexible and user-defined,
but strict in terms of syntax and structure. Tags in XML are user-defined, meaning users can
create their own tags. XML is case-sensitive XML requires closing tags for all elements XML
requires closing tags for all elements.
HTML: Focuses on displaying and formatting data for web browsers. It is more lenient with
syntax and uses predefined tags for content presentation. HTML has predefined tags that are
used for specific purposes, such as <div>, <a>, <p>, etc.HTML allows optional closing tags for
certain elements
OR
b) i) TELNET is a network protocol that allows a user to remotely access and manage devices over
a network, such as servers, routers, and other networked devices.
ii) Data Transmission Rate (also known as Data Transfer Rate or Bandwidth) refers to the speed
at which data is transmitted over a communication channel or network. It is the amount of
data that can be sent or received in a given period of time.
Units of DTR are bps, Kbps, Mbps, Gbps, Tbps
SECTION – C (3 x 3 = 9)
29. A) def DISPLAY():
f=open(“Article.txt”)
max=0
for i in f.read().split():
if i==i[::-1]:
l=len(i)
if l>max:
max=l
k=i
print(k)
OR
B) def DISPLAY():
f=open(“Article.txt”)
max=0
for i in f:
j=i.split()
if j[1].startswith(‘7’):
print(i)
30. A) Upper case count : 3
Lower case count : 15
OR
B) {'E': 1, 'x': 1, 'c': 1, 'e': 1, 'l': 1}
31. A) hostel =[]
def Push_element(L):
for i in L:
hostel.append(i)
def Pop_element():
while hostel!=[]:
print(hostel.pop())
else:
print(“Stack Empty”)
OR
B) stack=[]
def Push(D):
for i in D:
if D[i]>=900000:
stack.append( [ i, D[i] ])
def pop():
while stack!=[]:
L=stack.pop()
print(L[0],L[1])
iii)
NAME DOB DOJ
Ranjan 1990-07-12 2015-01-21
Akhtar 1992-06-21 2015-02-01
Muneera 1996-11-15 2018-08-19
iv)
min(DOJ) max(DOB)
2015-01-21 1996-11-15
SECTION – E ( 2 x 5 =10)
36. i) import pickle
def input_stock():
f=open(“STOCK.dat”,’wb’)
c = []
n = int(input())
for i in range(n):
ino = int(input())
i_name = input()
dcode = int(input() )
qty = int(input())
uprice=int(input())
c.append([ino, i_name, dcode, qty, uprice])
pickle.dump(c,f)
f.close()
ii) def read_stock():
f=open(“STOCK.dat”,’rb’)
tot=0
try:
while True:
m=pickle.load(f)
for i in m:
tot+=i[3]*i[4]
except EOFError:
print(tot)
f.close()
iii) def update_results():
u=[]
f=open(“STOCK.dat”,’rb’)
try:
while True:
m=pickle.load(f)
for i in m:
if i[1].startswith(“Gel”):
i[4]+=10
u.append(i)
except EOFError:
f.close()
f=open(“STOCK.dat”,’wb’)
pickle.dump(u,f)
f.close()
37. a)
***************END OF PAPER***************
4|Page