Maximum Marks: 70 Time Allowed: 3 HRS.: Part - A SECTION I - Attempt All 15 Questions
Maximum Marks: 70 Time Allowed: 3 HRS.: Part - A SECTION I - Attempt All 15 Questions
General Instructions:
1. This question paper contains two parts, A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part A has 2 sections :
a. Section I is short answer questions, to be answered in one word or one
line.
b. Section II has two case study questions. Each case study has 5 case –
based sub-parts. An examinee is to attempt any 4 out of 5 sub-parts.
4. Part B is Descriptive paper. Part B has three sections:
a. Section I is short answer questions of 2 marks each.
b. Section II is long answer questions of 3 marks each.
c. Section III is very long answer questions of 5 marks each in which one
question has internal options.
PART – A
SECTION I – Attempt all 15 questions.
1. Name the Python Library modules which need to be imported to invoke the 1
following functions:
(i) load( ) (ii) cursor( )
Page 1 of 7
7. A system designed to prevent unauthorized user access to or from a 1
network is termed as _______________.
8. Gaining knowledge about someone’s private and sensitive information from 1
their computer illegally is known as ___________________.
9. Find and write the output of the following Python code: 1
a=20
def call():
global a
b=20
a=a+b
return a
print(a)
call()
print(a)
10. Which of the following is not a DDL command? 1
(i) SELECT (ii) ALTER (iii) CREATE (iv) DROP
11. Observe the following code and answer the questions that follow: 1
f = open("story.txt","____")//blank1
__________#blank2
f.close()
(i) Fill in the blank 1 to write a parameter to open the file in read and write
mode.
(ii) Fill in the blank 2 with a statement to write the contents of file “story.txt”
to “story2.txt”.
12. Write a query in SQL to display the list of existing tables in a database. 1
13. Give one example of Aggregate function. 1
14. Nandini has created a website for her sister to sell the paintings made by 1
her. After completing the website, she wants to upload it on the internet so
that anyone can access it from anywhere. Name the process through which
it is possible.
15. Write the output of the given statement: 1
>>> 5%3
SECTION II – Both the case study-based questions (16 & 17) are compulsory. Attempt
any four sub-parts from each question. Each sub-question carries 1 mark.
16. A school named VVPS maintains a database ‘School’ that contains many
tables. One of the tables is Student as shown below:
import______ # Line 1
def CountStaff( ): # to read data from the CSV file
with ______('Staff.csv', newline='____') as f: # Line 2
csv_reader = csv.____________ (f) # Line 3
rows=[ ]
values=0
for i in csv_reader_:
if csv_reader.line_num==0:
continue
rows.append(i)
values=len(_______(csv_reader)) # Line 4
print("No. of records are:", values)
(a) Name the module she should import in Line 1. 1
(b) Write the method that she should use to open the file to read data from 1
it.
(c) Fill in the blank in Line 3 to read the data from a csv file. 1
(d) Fill in the blank in Line 4 with the method to convert the data read from 1
the file into list.
(e) Write the full form of CSV. 1
PART – B, SECTION I
18. Rewrite the following code in Python after removing all syntax error(s). 2
Underline each correction done in the code.
x= int("Enter the Value of x:"))
for in range[0,21];
if x=y
print (x+ y)
else:
Print(x-y)
19. Differentiate between Circuit Switching and Packet Switching. 2
OR
Compare 2G and 3G mobile technology.
Page 3 of 7
20. Expand the following terms: 2
(i) HTTP (ii) CDMA (iii) WAN (iv) Wi-Fi
21. Write a user-defined function with string as a parameter which replaces all 2
vowels in the string with '$'.
22. Write a function DISPLAYWORDS( ) in Python to read text from a text file 2
POEM.txt and display those words which have less than 4 characters.
23. Study the following program and select the possible output(s) from options 2
(i) to (iv) following it. Also, write the maximum and the minimum values
that can be assigned to the variable i.
import random
pick =random.randint(0,3)
color=['Red','Green', 'Blue', 'Orange']
for i in color:
for j in range(1,pick):
print(i,end="")
print()
(i) Red (ii) Red (iii) RedGreen (iv) RedRed
Green Green Green BlueBlue GreenGreen
Blue BlueOrange OrangeOrange BlueBlue
Orange OrangeOrange
24. What is module in Python? How can you access modules in the program? 2
25. What is the difference between where and having clause when used along 2
with the Select statement. Explain with an example.
Page 4 of 7
30. Consider the table Employee as shown below. Write commands in SQL for 3
the following queries:
(b) Stack.append("K")
(c) Stack.append("S")
(d) Stack.pop()
(e) Stack.append("G")
(f) Stack.pop()
SECTION III
Page 5 of 7
Distances between various buildings are as follows:
Number of computers:
As a network expert, provide the best possible answers for the following
queries:
(i) Suggest and draw the cable layout to efficiently connect various
buildings within the Chennai campus for connecting the
computers.
(ii) Suggest the most suitable place (i.e., building) to house the
server of this organization.
(iii) Which of the following will you suggest to establish online face-
to-face communication between different buildings of the
Chennai campus and Delhi Head Office?
(a) Cable TV (b) Email
(c) Video Conferencing (d) Text Chat
OR
Create a binary file funandfood.dat that can store details of rides such as
Ticketno, Ridename, Noofpersons, and Price with the help of AddRides( )
function and write another Python function DisplayTotal( ) to display total
amount of each ticket. Also count total number of tickets sold.
Page 7 of 7