Cs QP
Cs QP
In a large network a switch is preferred to reduce the unwanted traffic in the network
which may also reduce the bandwidth and cause network congestion.
1 mark for each
OR
WAN is also called as Wide Area Network. It is a network of computing devices
crossing the limits of city, country or continent. It covers area of over hundreds or
thousands of kilometres radius. For example: Network of ATMs, BANKs, National or
International organization offices spread over a country or continent.
MAN is also called as Metropolitan Area Network. It is a network of communicating
devices within a city. It covers an area of few kilometres to few hundreds kilometres.
For example: Network of schools, bank, and government offices within a city.
Best example of WAN is the Internet.
1 mark for each
26 Ans. 2
a. PHP-Hypertext Text markup Language
b. ITA-Information Technology Act
c. SIP- Session Initiation Protocol
d. GSP-Global system for mobile communication
½ mark for each.
27 When you assign a value to the parameter (such as param=value) and pass to the 2
function (like fn(param=value)), then it turns into a keyword argument.
Or
Ans. The program part(s) in which a particular piece of code or data value can be
accessed is known as variable scope. In python broadly scopes can either be global
scope or local scope.
33 200 # 100 2
l=len(arr)
for a in range(l):
if(arr[a]%2==0):
arr[a]=10
else:
arr[a]=arr[a]*5
a=[10,20,23,45]
listchange(a)
print(a)
1 mark for function
1 mark for loop and condition checking
1 mark for if and else
35 f=open("C:\\xii_ip\\abc.txt","r") 3
linesList=f.readlines()
count=len(linesList)
print(count)
f.close()
1 mark for open() 1 mark for readlines() 1 mark for count and close
OR
file=open("C:\\xii_ip\\abc.txt","r")
c=0
line = file.read()
word = line.split()
for w in word:
if w=='if':
print( w)
c=c+1
print(c)
file.close()
1 mark for open() 1 mark for read() and split() 1 mark for count and close
36 (i) 2 3
(ii)
Manufacturer Min max
LAK 40 40
ABC 45 55
XYZ 95 120
(iii)
ProductName ClientName
Face Wash Total Health
37 def PushEl(element): 3
a=int(input("enter package title : "))
element.append(a)
def PopEl(element):
if (element==[]):
print( "Stack empty")
else:
print ("Deleted element:", element.pop())
or
def InsertQ(queue):
a=input(“Enter customer name :”)
queue.append(a)
def DeleteQ(queue):
if (queue==[]):
print (“Queue is empty…..”)
else:
print(“Deleted element is”, queue[0])
del queue[0]
38 . B_Town 5
2. Star Topology
Village -
Village -
3
2
B_Town
Village -
1
3. Hub/ Switch
4. Telnet
5. Firewall
39 a. Select R.RecIC, S.Sendername, S.SenderAddress, R.RecName, R.RecAddress from 5
Sender S, Recepient R where S.SenderID=R.SenderID ;
b. SELECT * from Recipent ORDER By RecName;
c. SELECT COUNT( *) from Recipient Group By RecCity;
d.Select * from sender where Sendercity=’mumbai’;
e. update recipient set RecName=’S Rathore’ where RecID=’ KO05’
1 mark for each correct answer.
40 import pickle 5
def CreateEmp():
f1=open("C:\\xii_ip\\emp.dat",'wb')
eid=input("Enter E. Id")
ename=input("Enter Name")
designation=input("Enter Designation")
salary=int(input("Enter Salary"))
l=[eid,ename,designation,salary]
pickle.dump(l,f1)
f1.close()
import pickle
def display():
f2=open("C:\\xii_ip\\emp.dat","rb")
try:
while True:
rec=pickle.load(f2)
if rec[3]>5000:
print(rec[0],rec[1],rec[2],rec[3])
except:
f2.close()
display()
2 and ½ mark for each function
OR
(i)
import pickle
def createemp:
f1=open("emp.dat",'ab')
eid=input("Enter E. Id")
ename=input("Enter Name")
designation=input("Enter Designation")
salary=int(input("Enter Salary"))
l=[eid,ename,designation,salary]
pickle.dump(l,f1)
f1.close()
ii)
def display():
f2=open("emp.dat","rb")
try:
while True:
rec=pickle.load(f2)
if (rec[2]=='Manager'):
print(rec[0],rec[1],
rec[2],rec[3])
except:
break
f2.close()