0 ratings0% found this document useful (0 votes) 45 views12 pages91 Computer Science
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
Series : %BAB% SET-4
ya aS
QP.Code IL
ise Candidates must write the QP. Code
om NO on the title page of the answer-book.
eianiinsineineineinineaensanineimaniinsaneneaamaneensmanimanenaneanes
Please check that this question paper contains 12 printed pages.
Q.P. Code given on the right hand side of the question paper should be written
on the title page of the answer-book by the candidate.
Please check that this question paper contains 13 questions.
Please write down the Serial Number of the question in the answer-book
before attempting it.
15 minutes time has been allotted to read this question paper. The question
paper will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the
candidates will read the question paper only and will not write any answer on
the answer-book during this period. *
{ASEH HE NGI AE NEHA GEY I GOMEH HORII
pone
ERR RRR RE RSME RE REMMI
aR COMPUTER SCIENCE |||
Time allowed : 2 hours Maximum Marks : 35
91 318 Page 1 P.T.O.a
ae
General Isnstructions :
() This question paper is divided into 3 Sections — A, B and C.
(ii) Section A, consists of 7 questions (1-7). Fach question carries 2 marks,
(iii) Section B, consists of 3 questions (8-10). Each question carries
3 marks.
(iv) Section C, consists of 8 questions (11-13). Each question carries
4 marks.
(v) Internal choices have been given for question numbers— 7, 8 and 12.
SECTION - A
(Each question carries 2 marks)
1. “Stack is a linear data structure which follows a particular order in which
the operations are performed.”
What is the order in which the operations are performed in a Stack ?
Name the List method/function available in Python which is used to
remove the last element from a list implemented stack.
Also write an example using Python statements for removing the last
clement of the list.
2. @ Expand the following :
VoIP, PPP
(i) Riya wants to transfer pictures from her mobile phone to her laptop.
She uses Bluetooth technology to connect two devices. Which type of
network (PAN/LAN/MAN/WAN) will be formed in this case ?
ou NMI IT Page 23. Differentiate between the terms Attribute and Domain in the context of
Relational Data Model. 2
4. Consider the following SQL table MEMBER in a SQL Database CLUB : 2
Table : MEMBER
MID NAME ACTIVITY
100 Amina cym
i002 Pratik erm
M1003 mon
1004 Rakesh om
mioos Avneet SWIMMING
Assume that the required library for establishing the connection between
Python and MYSQL is already imported in the given Python code. Also
assume that DB is the name of the database connection for table
MEMBER stored in the database CLUB
Predict the output of the following code :
MYCUR = DB.cursor()
MYCUR. execute ( CLUB")
MYCUR.execute ("SELECT * FROM MEMBER WHERE ACTIVITY= 'GYM' ")
R=MYCUR. fetchone ()
for i in range (2)
R=MYCUR. fetchone()
print (R[0], R[1], sep = "#")
ou NMI IT Page 3 Pn.ao
Write the output of SQL queries (a) to (d) based on the table
VACCINATION_DATA given below 2
TABLE : VACCINATION_DATA
VID Name Age Dosel Dose2 city
101 | Jenny 27 | 2021-12-28 | 2022-1 Delhi
102 | Harjot ss | 2021-07-14 | 2021- Mumbai
103 |Srikanth | 43 | 2021-04-18 | 2021-07-20 | Delhi
104 |Gazala 75 | 2021-07-31 NULL Kolkata
105 | Shiksha 32 | 2022-01- NULL Mumba i
91
me, Age FROM VACCINATION DATA
Dose2 IS NOT NULL AND Age > 40;
(b) SELECT City, COUNT(*) FROM vA¢
CINATION DATA GROUP BY City;
DISTINCT City FROM VACCINATION DATA;
(d) SELECT MAX (Dosel), MIN (Dose2) FROM VAC
Write the output of SQL queries (a) and (b) based on the following two
tables DOCTOR and PATIENT belonging to the same database 2
Table : DOCTOR
DNO DNAME FEES
AMITABH 1500
D2 ANIKET 1000
D3 NIKEIL 1500
4 ANJANA 1500
| Page 491
Table : PATIENT
BNO NAME ‘ADMDATE DNO
21 | NOOR 2021-12-25 D1
P2 | ANNIE 2021-11-20 ba
23. | PRAKASH 2020-12-10 | NULL
pa | RARMEET 2019-12-20 DL
la)
JECT DNAME, PNAME FROM DOCTOR
NATURAL JOIN PATIENT ;
(b) SELECT PNAME, ADMDATE, FEBS
PROM PATIENT P, DOCTOR D
WHERE D.DNO = P.DNO AND FEES > 1000;
Differentiate between Candidate Key and Primary Key in the context of
Relational Database Model, 2
OR
Consider the following table PLAYER :
Table : PLAYER
PNO NAME SCORE
PL RISHABH
P2 | HUSSAIN 45
P3 | ARNOLD 23
P4 | ARNAV 18
PS | GURSHARAN 42,
INU Page 5 Pn.Identify and write the name of the most appropriate column from the
given table PLAYER that can be used as a Primary key.
(b) Define the term Degree in relational data model. What is the Degree
of the given table PLAYER ?
SECTION - B
(Each question carries 3 marks)
8, © Write the definition of a user defined function PushNV(N) which
accepts a list of strings in the parameter N and pushes all strings
which have no vowels present in it, into a list named NeVowel. 3
+ Write a program in Python to input 5 words and push them one by
one into a list named A11.
The program should then use the function PushNV() to create a
stack of words in the list NoVewel so that it stores only those words
which do not have any vowel present in it, from the list AlL.
Thereafter, pop each word from the list NeVewel and display the
popped word. When the stack is empty display the message
"EmptyStack"
For example :
Ifthe Words accepted and pushed into the list A11 are
['DRY', 'LIKE', 'RHYTHM', 'WORK', 'GYM']
ou NMI IT Page 6‘Then the stack NoVowel should store
['DRY', 'RHYTHM', 'GYM']
And the output should be displayed as
GYM RHYTHM DRY EmptyStack
OR
+ Write the definition of a user defined function Push3_5(N) which
accepts a list of integers in a parameter N and pushes all those
integers which are divisible by 3 or divisible by 5 from the list N
into a list named only3_5.
+ Write a program in Python to input 5 integers into a list named NUM.
The program should then use the function Push 3_5() to create the
stack of the list Only3_5. Thereafter pop each integer from the list
only3_5 and display the popped value. When the list is empty,
display the message "StackEmpty".
For example
If the integers input into the list NUM are :
(10, 6, 14, 18, 30]
‘Then the stack Only3_5 should store
(10, 6, 18, 30]
And the output should be displayed as
30 18 6 10 StackEmpty
ou NMI IT Page 7 Pn.3
10.
iL.
91
@ ASQL table TTEMs contains the following columns :
INO, INAME, QUANTITY, PRICE, DISCOUNT
Write the SQL command to remove the column DIscounr from the
table.
(ii) Categorize the following SQL commands into DDL and DML :
CREATE, UPDATE, INSERT, DROP
Rohan is learning to work upon Relational Database Management System
(RDBMS) application. Help him to perform following tasks :
(a) To open the database named "LIBRARY".
(b) To display the names of all the tables stored in the opened database
(©) To display the structure of the table "BOOKS" existing in the already
opened database "LIBRARY"
SECTION - C
(Each question carries 4 marks)
Write SQL queries for (a) to (@) based on the tables PASSENGER and
FLIGHT given below :
Table : PASSENGER
po | Nawe | GENDER | FO
7001 | Saresh [wate Fil
1002 Anita FEMALE F104
1003 [Harjas [WAGE F102
too vita | Fewate F103
UUNATIA Page 8able : FLIGHT
FNO START END F_DATE FARE
F101 |mumBAz | CHENNAT 4500
102 | MUMBA, BENGALURU | 2021-11-20 | 4000
103 | DELHI CHENNA: 2021-12-10 | 5500
F104 MUM 2021-12-20 | 4500
F105 BENGALURU | 2021-01-15 | 5000
(a)
)
©
@
12. @)
Gi)
Write a query to change the fare to 6000 of the flight whose FNO is
F104.
Write a query to display the total number of MALE and FEMALE
ENGERS.
Write a query to display the NAME, corresponding FARE and F_DATE
of all PASSENGERS who have a flight to START from D=
Write a query to delete the records of flights which end at Mumbai.
Differentiate between Bus Topology and Tree Topology. Also, write
one advantage of each of them 2
OR
Differentiate between HTML and XML,
What is a web brow:
1? Write the names of any two commonly used
web browsers. 2
ou NMI IT Page 9 Pn.ee
13. Galaxy Provider Ltd. is planning to connect its office in Texas, USA with
91
its branch at Mumbai. The Mumbai branch has 3 Offices in three blocks
located at some distance from each other for different operations —
ADMIN, SALES and ACCOUNTS.
As a network consultant, you have to suggest the best network related
solutions for the
ues/problems raised in (a) to (d), keeping in mind the
distances between various locations and other given parameters.
Layout of the Offices in the Mumbai branch :
‘Accounts
Block
Shortest distances between various locations
ADMIN Block to SALES Block 300m
SALES Block to ACCOUNTS Block. 175 m
ADMIN Block to ACCOUNTS Block 350 m
MUMBAI Branch to TEXAS Head Office 14000 km
IIA Page 10ae
Number of Computers installed at various locations are as follows :
ADMIN Block
ACCOUNTS Block 7
SALES Block 30
TEXAS Head Office 90
(a) It is observed that there is a huge data loss during the process of
b)
©
@
data transfer from one block to another. Suggest the most
appropriate networking device out of the following, which needs to be
placed along the path of the wire connecting one block office with
another to refresh the signal and forward it ahead.
@ MODEM (i) ETHERNET CARD
(ii), REPEATER (Gv) HUB
Which hardware networking device out of the following, will you
suggest to connect all the computers within each block ?
@ SWITCH @) MODEM
(ii), REPEATER (iv) ROUTER
Which service/protocol out of the following will be most helpful to
conduet live interactions of employees from Mumbai Branch and
their counterparts in Texas ?
@ FTP (i) PPP
i) SMTP (iv) VolP
Draw the cable layout (block to block) to efficiently connect the three
offices of the Mumbai branch
ou NMI IT Page 11ou NMI IT Page 12