0% found this document useful (0 votes)
31 views6 pages

XII-CSC-23.11.2024-GT - 3rd 33 - IIT

Uploaded by

bad340275
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
31 views6 pages

XII-CSC-23.11.2024-GT - 3rd 33 - IIT

Uploaded by

bad340275
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 6

VELAMMAL BODHI CAMPUS, PONNERI

3rd 33% EXAMINATION 2024-25


COMPUTER SCIENCE
Date : 23-11-2024
Time allowed: 3hours Subject Code : 083 Maximum marks: 70
=========================================================================
General Instructions:
● This question paper contains 37 questions.
● All questions are compulsory.
● The paper is divided into 5 Sections- A, B, C, D and E.
● Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
● Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
● Section C consists of 3 questions (29 to 31). Each question carries 3 Marks.
● Section D consists of 4 questions (32 to 35). Each question carries 4 Marks.
● Section E consists of 2 questions (36 to 37). Each question carries 5 Marks.
● All programming questions are to be answered using Python Language only.
● In case of MCQ, text of the correct answer should also be written.
=========================================================================
SECTION – A
I. ANSWER ALL THE QUESTIONS: 𝟐𝟏 × 𝟏 = 𝟐𝟏𝑴
1. State True or False.
Tuples can be nested and can contain other compound object like lists, dictionaries
and other tuples.
2. Suppose list1 = [0.5 * x for x in range (0, 4)], list1 is
a) [0, 1, 2, 3] b) [0, 1, 2, 3, 4]
c) [0.0, 0.5, 1.0, 1.5] d) [0.0, 0.5, 1.0, 1.5, 2.0]
3. Identify the valid declaration of L : L = [1, 23, ‘hi’, 6].
a) list b) dictionary c) array d) tuple
4. What is the data type of (1)?
a) Tuple b) Integer c) List d) Both tuple and integer
5. For a string S declared as S = “PYTHON’, which of the following is incorrect?
a) N=len(S) b) T=S c) ‘T’ in S d) S[O]= ‘M’
6. Which of the following is/are immutable object types in python?
a) List b) String c) Tuple d) Dictionary
7. Which of the following will create an empty list?
a) L=[ ] b) L=list(0) c) L=list( ) d) L=list(empty)
8. You have the following code segment :
String1= “my”
String2= “work”
print(String1+String2.upper( ))
a) mywork b) work c) myWORK d) MYWORK
9. Identify the invalid python statement from the following.
a) d=dict( ) b) c={ } c) f=[ ] d) g=dict{ }
10. Fill in the blanks :
________ function will always return tuple of 3 elements.
11. State True or False.
The keys of a dictionary must be of immutable types.
12. Which of these is not a communication channel?
a) Satellite b) Microwave c) Radiowave d) WAN
13. XYZ company is planning in connect all computers, each spread over a distance of
50 metres. Suggest an economic cable type having high speed data transfer to
connect these computers.
14. _______ is a communication methodology designed to deliver both voice and
multimedia communication over internet protocol.
a)VOIP b)SMTP c)PPP d)HTTP
15. Which of the following is not a network device?
a) Hub b) Switch c) Mesh d) Router
16. Which of the following transmission media has highest bandwidth?
a) Coaxial cable b) Fiber optic cable
c) Twisted pair cable d) None of these
17. ________ is a networking device that forwards the data packets between computer
networks.
a) Repeater b) Hub c) Switch d) Router
18. A ________ is a program running on the server which accepts requests from a
browser and send HTML.
a) Web server b) Web transmitter
c) Web intermediate d) Web multitasker
19. What is the expanded form of FTP?
Q.20 and 21 are ASSERTION·(A) and REASONING (R) based questions.
Mark the correct choice as
(a) Both (A) and (R) are true and (R) is the correct explanation for {A).
(b) Both {A) and (R) are true and (R) is not the correct explanation for (A).
(c) (A) is true but (R) is false.
(d) (A) is false but (R) is true.
20. Assertion (A) : There is no difference between a list and a tuple in python.
Reason (R) : The list elements are enclosed within square brackets[ ] separated by
commas and the tuple elements are enclosed within parenthesis( ) separated by
commas.
21. Assertion (A) : A protocol defines the set of rules that are applicable for data
sharing and communication over a network.
Reason (R) : Local Area Network(LAN) is an example of protocol.
SECTION – B 𝟕 × 𝟐 = 𝟏𝟒𝑴
22. Find and write the output of the following python code :
def fun(S):
K=len(S)
m= “ ”
for i in range(0, K):
if(S[i].isupper( )):
m=m+S[i].lower( )
elif S[i].isalpha( ):
m=m+S[i].upper( )
else:
m=m+‘bb’
print(m)
fun(‘school22@com’)
23. Find and write the output of the following python code.
List1 = [“20”, “50”, “30”, “40”]
CNT=3
Sum=0
for I in [7,5,4,6]:
T=List1[CNT]
Sum=float(T)+I
print(Sum)
CNT-=1
24. (i) Consider the given string and write output of the following :
str1= “Augmented Reality”
a) str1[3:6] b) str1[-10:-3] c) str1[:7] d) str1[0:3]
(OR)
(ii) Write a python function string_length( ) to calculate the length of a string :
‘Python program’ without using len( ) function.
25. Differentiate between circuit switching and packet switching.
26. What is a modem? What are the two types of modems?
27. Write two points of difference between XML and HTML.
28. Expand the following terms :(i) (a) HTTPS (b) POP (c) PPP d)SMTP
(OR)
(ii) Define the following terms :
(a) RJ-45 (b) Hub
SECTION – C 𝟑 × 𝟑 = 𝟗𝑴
29. (i) Find the output of the following code :
result=0
numberList=[10,20,30]
numberList.append(40)
result=result+numberList.pop( )
result=result+numberList.pop( )
print(result)
print(numberList)
(OR)
(ii) Write a function in python POP(Arr), where Arr is a stack implemented by a list
of numbers. The function returns the value deleted from the stack.
30. (i) You have a stack named BooksStack that contains records of books. Each book
record is represented as a list containing book_title, author_name, and
publication_year.
Write the following user-defined functions in Python to perform the specified
operations on the stack BooksStack:
(I) push_book(BooksStack, new_book): This function takes the stack
BooksStack and a new book record new_book as arguments and pushes
the new book record onto the stack.
(II) pop_book(BooksStack): This function pops the topmost book record from
the stack and returns it. If the stack is already empty, the function should
display "Underflow".
(III) peep(BookStack): This function displays the topmost element of the stack
without deleting it. If the stack is empty, the function should display
'None'.
(OR)
(ii)A list contains the following record of a
customer.[customer_name,phone_number,city]
Write the following user-defined functions to perform given operations on the
stack named status.
(i)push_element():To push to the stack an object containing name and phone
of customers who live in Goa
(ii)pop_element():To pop the objects from the stack and display
them.Also,display “Stack Empty” when there are no elements in the stack.
For example:
If the lists of customer details are:
[“Gurdas”,”999999”,”Goa”]
[“Julee”,”888888”,Mumbai”]
[“Murugan”,”77777”,”Cochin”]
[“Ashmit”,”10101010”,”Goa”]
The stack should contain:
[“Ashmit”,”10101010”]
[“Gurdas”,”999999”]
The output should be:
[“Ashmit”,”10101010”]
[“Gurdas”,”999999”]
Stack Empty
31. (i) Write the following user defined functions :
(i) PushEven(N) – This function accepts a list of integers named N as parameter.
It then pushes only ever numbers into the stack named EVEN.
(ii) POPEvent(EVEN) – This function pops each integer from the stack EVEN and
displays the popped value.
When the stack is empty, the message “Stack Empty” is displayed.
For example : If the list N contains : [10, 5, 3, 8, 15, 4].
Then the stack, EVEN should store [10, 8, 4] and the output should be 4 8 10
stack empty.
(OR)
(ii) Write the output of the following program :
str= “CBSE Digital India”
for i in range(len(str)-1, 0, -1) :
if str[i].isupper( ):
print(str[i].lower( ), end= “ ”)
elif i%2==0:
if str[i].islower( ):
print(str[i].upper( ), end= “ ”)
else:
print(“@”, end= “ ”)
SECTION – D 𝟒 × 𝟒 = 𝟏𝟔𝑴
32. (i) Write the output of the following python program code :
L= “neat”
X= “ ”
L1=[ ]
count=1
for i in L :
if i in [‘a’, ‘e’, ‘i’, ‘o’, ‘u’]:
X=X+i.swapcase( )
else:
if((count %2)!=0):
X=X+str((len(L[:count])))
else:
X=X+i
count=count+1
print(X)
(OR)
(ii) Write a function LShift(arr, n) in python which accepts a list arr of numbers and
where n is a numeric value by which all elements of the list are shifted to the left.
sample input data of the list arr=[10,20,30,40,12,11]
n=2
output arr = [30,40,12,11,10,20]
33. BCCI has created a dictionary containing top players and their runs as key value
pairs of cricket team. Write a program,With separate user defined functions to
perform, the following operations :
* Push the keys(name of the players) of the dictionary into a stack, where the
corresponding value (runs) is greater than 49.
* Pop and display the content of the stack.
For example :
If the same content of the dictionary is as follows :
SCORE ={“KAPIL”:40, “SACHIN”:55, “SAURAV”:80, “RAHUL”:35, “YUVRAJ”:110}
The output from the program should be :
YUVRAJ SAURAV SACHIN.
34. Write the definition of a function POP_PUSH(LPOP, LPUSH, N) in Python. The
function should POP out the last N elements of the list LPOP and PUSH them into
the list LPUSH.
For example : If the contents of the list LPOP are [10, 15, 20, 30] and value of N
Passed is 2, then the function should create the list LPUSH as [30, 20].
And the list LPOP should now contain [10, 15].
NOTE : If the value of N is more than the number of elements present in LPOP,
then display the message “POP not possible”.
35. Expand the following terminologies :
(i) TCP (ii) ARPANET (iii) VOIP (iv) XML

SECTION – E 𝟐 × 𝟓 = 𝟏𝟎𝑴
36. Rovenza communication international (RCC) is an online corporate training
provider company for IT-related courses. The company is setting up their new
campus in Kolkata. You, as a network expert, have to study the physical locations
of various blocks and the number of computers to be installed. In the planning
phase, provide the best possible answer for the queries (a) to (e) raised by them.
Block-to-Block distance (in meters) :
From To Distance
Administrative block Finance block 60
Administrative block Faculty recording block 120
Finance block Faculty reaching block 70

Expected computers to be installed in each block :


Block Computers
Administrative block 30
Finance block 20
Faculty recording block 100
(a) Suggest the most appropriate block where RCC should plan to install the server.
(b) Suggest the most appropriate block-to-block cable layout to connect all three
blocks for efficient communication.
(c) Which type of network is formed by connecting the computers of these three
blocks?
(d) Which wireless channel out of the following should be opted by RCC to connect
to students from all over the world?
(i) infrared (ii) microwave (iii) satellite
(e) Suggest the placement of the Hub/switch in the network.

37. Quickdev, an IT based firm, located in Delhi is planning to set up a network for its
four branches within a city with its Marketing department in Kanpur.
As a network professional, give solutions to the questions(I)to(V),after going
through the branches locations and other details which are given below:

DELHI BRANCH J KANPUR BRANCH

XC BRANCH A B BRANCHE B

MARKETING DEPT.

M BRANCH C BRANCHE D

Distance between various branches is as follows:


Branch A to Branch B 40m
Branch A to Branch C 80m
Branch A to Branch D 65m
Branch B to Branch C 30m
Branch B to Branch D 35m
Branch C to Branch D 15m
Delhi Branch to Kanpur 300km
Number of computers in each of the branches:
Branch A 15
Branch B 25
Branch C 40
Branch D 115
(I) Suggest the most suitable place to install the server for the Delhi branch with
a suitable reason.
(II) Suggest an ideal layout for connecting all these branches within Delhi.
(III) Which device will you suggest, that should be placed in each of these
branches to efficiently connect all the computers within these branches?
(IV) Delhi firm is planning to connect to its Marketing department in Kanpur
which is approximately 300km away, which type of network out of LAN,WAN
or MAN will be formed? Justify your answer.
(V) Suggest a protocol that shall be need to provide help for transferring of files
between Delhi and Kanpur branch.
(or)
Suggest a protocol that shall be need to provide Video Conferencing solution
between Delhi branch to Kanpur branch

******ALL THE BEST*******

You might also like