NAVODAYA VIDyALAYA SAMITI: HYDERABAD REGION
Term II Examination (2025-26)
CLASS: XII SUBJECT: COMPUTER SCIENCE (083)
Max Time: 3 hrs. Max Marks: 70
SET- II Marking Scheme
--------------------------------------------------------------------------------------------------------------------
SECTION A
[Link] Answer Key Mark
Distribution
1 1
False
2 (A) #THONPROGRAM 1
3 (A) Not (True) and False 1
4 [Link](0) (OR, [Link](0,0)) 1
5 Packet switching 1
6 (B) dump( ) 1
7 (C) Repeater 1
8 (D) None 1
9 (A) rb+ and (C) ab+ 1
10 (C) L1. insert(2, 99) 1
11 (B) Firewall 1
12 (A) [Link]("id") 1
13 (B) [Link](4) 1
14 (C) [Link]() 1
15 (C) Satellite or leased line 1
16 (C) 5 1
17 (B) 15 1
18 (A) dlrow 1
19 (D) True#False 1
20 (B)Both A and R are true and R is not the correct explanation for A. 1
(1 mark for correct answer)
21 (C) A is true but R is false 1
SECTION – B
22 (I) (A) [Link](4) 2
OR
1
(B) [Link]()
(1 mark for correct answer)
(II) (A) [Link](L2)
OR
(B) [Link](reverse=True)
(1 mark for correct answer)
23 In peer to peer network, all computers (peers) are in equal capacity 2
and can act as both clients and servers.
While
In Client-Server network, devices are divided into clients
(requesters) and servers (providers).
(1-1 mark for each or any other valid difference)
24 A) Advantage: Network extension is easy. 2
Disadvantage: Failure of switch/ hub results in failure of the
network.
(1 mark for correct Advantage)
(1 mark for correct Disadvantage)
OR
B) i) Faulty node detection is easy in star topology.
ii) Centralized control is possible in star topology.
(1 mark for each correct Advantage)
25 num = int (input("Enter a number: ")) # Type conversion added
if num % 2 == 0: # Comparison operator corrected 2
print("Even") # Proper indentation
else:
print("Odd") # Colon and indentation
(1/2 mark for each correction)
26 (i) The winner is :T7363 and (iv) The winner is :U3667 2
(1 mark for each)
27 (I) Positional Argument - Arguments that must be passed in the
correct order in function call statement by user. 2
[Link] greet (name, age):
while
Default Argument- Arguments that take a default value if not
2
provided by the user in function call statement.
[Link] greet(name, age=18):
(1 mark for each)
(II) Parameter- Variable in the function definition that receives a
value .It is used in function header.
while
Argument- Actual value passed to the function when [Link] is
used in function call.
def greet(name): # 'name' is a parameter
print("Hello", name)
greet("Riya") # "Riya" is an argument
(1 mark for each)
28 w+ mode, opens the file for writing and reading. Creates the file if 2
it does not exist. Erases all existing content if the file exists.
While
r+ mode, opens the file for reading and writing. Does not create the
file if it does not exist. It does not erase existing content.
(1 mark for each)
SECTION – C
29 (A)
(I)
def push_book(BooksStack,new_book):
[Link](new_book) 3
(II)
def pop_book(BooksStack):
if not BooksStack:
print("Underflow")
else:
return([Link]())
(III)
def peep(BooksStack):
if not BooksStack:
print("None")
else:
print(BookStack[-1])
(3*1 mark for correct function body; No marks for any function
header as it was a part of the question)
OR
B) def Push_element(Status,Top):
3
phone_no=int(input("Enter phone number:"))
emp_name = input("Enter employee name:")
St = (phone_no, emp_name)
[Link](St)
Top=Top+1
return Top
def Pop_element(Status,Top):
Slen = len(Status)
if (Slen <= 0):
print("Status is empty")
else:
phone_no, emp_name=[Link]()
Top=Top-1
print("Phone number and name deleted",(phone_no,emp_name))
return Top
(1.5 mark for each correct function definition)
30 (A)
def show():
f=open("[Link]",'r')
data=[Link]()
3
words=[Link]()
for word in words:
if '@cmail' in word:
print(word,end='')
[Link]()
(½ mark for correct function header)
(½ mark for correctly opening the file)
(½ mark for correctly reading from the file)
(½ mark for splitting the text into words)
(1markforcorrectlydisplayingthedesiredwords)
OR
(B)
def display_long_words():
withopen("[Link]",'r')asfile:
data=[Link]()
words=[Link]()
for word in words:
if len(word)>5:
print(word,end=' ')
(½ mark for correct function header)
4
(½markforcorrectlyopeningthefile)
(½markforcorrectlyreadingfromthefile)
( ½mark for splitting the text into words)
(1 mark for correctly displaying the desired words)
31 (I) ter science @
COMPUTER S @ 3
e @
OR
(II) 70 40 30
110 60 50
SECTION – D
32 (I)
import pickle
def Countrec ():
fobj = open (“[Link]”, “rb”)
Count = 0
try: 4
while True:
rec = [Link] (fobj)
if rec [ 2 ] > 85 :
print (rec[0] ,rec[1], rec[2], ser = “\t”)
Count + = 1
except EOFError:
fobj. Close ()
print(“Number of students scoring above 85% =”, Count)
(1 mark for opening file correctly)
(1 mark for reading file record)
(1 mark for correct if condition)
(1/2 mark for displaying record, ½ mark to display no. of records)
OR
(II)
def update_marks(student_list, roll_no, new_marks):
found = False
for i in range(len(student_list)):
if student_list[i][0] == roll_no: # Check if roll_no matches
student_list[i][2] = new_marks # Update marks
found = True
print("Marks updated for Roll No:", roll_no)
break # Exit loop once student is found and updated
5
if not found:
print("Student with Roll No:", roll_no , "not found.")
(1 mark for using proper loop)
(1 mark for correct search statement)
(1 mark for correctly updating marks)
(1 mark for displaying proper message)
33 def Str_count () :
fin = open(“[Link]” , “r” )
rec = [Link]() 4
word = [Link]()
C=0
for i in word :
if i = = “India” :
C = C+ 1
print (“Total count for word India :”, C )
[Link]()
(1 mark for opening file correctly)
(1 mark for reading file record)
(1 mark for correct loop condition)
(1 mark to display total no. of word India)
34 def count_and( ):
fob=open("[Link]", 'r')
c=0 4
while True:
Str1=[Link]( )
Str2=[Link]( )
for i in range(len(Str2)):
if(Str2[i]=='and' or Str2[i]=='AND'):
c=c+1
print("Count of_and_infile is/are:",c)
else:
print("File does not exist")
[Link]( )
count_and( )
(1 mark for opening the file in right mode and creating file handle)
(1 mark for applying correct logic)
(½ mark for correct use of counter)
(½ mark for correctly displaying the counter)
(½ mark for closing the file)
(½ mark for function call)
35 (i) Bandwidth refers to the maximum amount of data that can be
transferred over a network in a given time, usually measured in
Mbps or Gbps. 1+1+1+1
6
(1/2 mark for correct definition and ½ mark for unit)
(ii) modulator-demodulator
(1 mark for correct answer)
(iii) Network topology refers to the arrangement or layout of
computers, devices, and cables in a computer network.
(1 mark for correct definition)
(iv) Optical fiber
(1 mark for correct answer)
SECTION – E
36 Line 1> csv 1+1+1+1+1
Line 2> “a”
Line 3> writer
Line 4> append
Line 5> writerows
(1 mark for each correct Line)
37 i . The most suitable place to install the server is Admin Centre
because it has maximum number of computers. (using 80-20 rule). 2+1+1+1
(1 mark for suitable server place and 1 mark for correct
justification)
ii. Fiber optic cable
(1 mark for correct answer)
iii. Switch
(1 mark for correct answer)
iv. WAN because LAN and MAN cannot span more than 100
km.
(1/2 mark for correct network and ½ mark for justification)