Professional Documents
Culture Documents
SECTION -A
Each question carries 2 marks
Q. Part Questions Marks
NO. No.
1 Name any two linear Data Structures? What do you understand by the term 2
LIFO? Stack, List - Last in First Out
2 (i) Write the full form of HTTP and XML. 1
(ii) Out of the following, which transmission media requires a Line of Sight? 1
Satellite, Infrared, Microwave, Radio waves
3 How the data type CHAR differs from VARCHAR in MySql? Illustrate with an 2
example?
4 Fetchm Which is the most appropriate method to access 5 records from a cursor 2
any(5) object? Write down complete python statement depicting how it will be used?
5 Consider the following table named DEBTOR and write the output of the 2
following queries: -
DEBTOR
P_NO PERSON_NAME AMOUNT RATING CITY
111 KAMLESH KUMAR 50000 A JAIPUR
112 SANDEEP JAIN 25000 B UDAIPUR
113 RAJESH SHARMA 30000 B AJMER
114 OMESH 20000 C JAIPUR
115 RITIK GUPTA 70000 C KOTA
116 RAJAT 40000 C UDAIPUR
117 AMAN GUPTA 60000 A UDAIPUR
Table - PRODUCT
Product_No Product_Name Price Date_of_Entry
536 Soap 5.00 2021-11-30
204 Paste 10.00 2021-04-30
427 Tea 3.00 2021-07-31
1027 Oil 2.00 2021-10-31
1038 Toffee 6.00 2021-09-30
Table - Bill
Bill_no Bill_Date Amount Product_No
10001 2022-01-02 15520.00 536
10002 2022-01-05 10320.00 204
10005 2022-01-09 10770.00 427
10011 2022-01-25 10000.00 1027
10028 2022-01-27 12000.00 1038
a. What will be the Primary Key of Product relation? Justify your answer.
b. What is the Cardinality and Degree of Product relation?
OR
a. Is there any foreign key in any of the above tables? If yes mention its
name. Product_No
b. What will be Degree and Cardinality of Bill relation? 4, 5
SECTION – B
Each question carries 3 marks
8 Assume a dictionary names KVS having Region and Number of Schools as 3
key-value pairs. Write a program with separate user-defined functions to
perform the following operations:
Push the keys (Name of Region) of the dictionary into a stack, where the
corresponding value (Number of Schools) is more than 50.
Pop and display the content of the stack.
For example
If the sample content of the dictionary is as follows:
KVS={"DELHI":55, “JAMMU”:27, "JAIPUR":76, "GURUGRAM":47, "AGRA":60}
For Example:
If the Sample Content of the list is as follows:
N=[3,5,10,13,21,28,45,56,60,78]
TABLE -STAFF
StaffID Char type data with length 5 PRIMARY KEY
a) Display Model and Maker name whose price is more than 10 Lakhs in
the descending order of price.
b) Show Model and their respective Dealer name.
c) Display dealer name who is from JAIPUR and dealing with cars of
HONDA.select dealer_name, city,maker from dealer d, car c where d.dcode=c.dcode,city=‘JAIPUR’,maker=‘HONDA’;
d) Display total number of dealer of each city.
12 (i) What are the differences between LAN and WAN? (Any four) 2
OR
Define Web page and URL?
(ii) Identify the Switching Technique: 2
a) In this technique the resources are reserved during the whole
communication process.
b) In this technique the data is broken into n number of smaller chunks of
data before transmission.
13 TCS Pvt. Ltd. is opening its new software development branch in Jaipur. The 4
campus of this branch has 4 wings as shown in the diagram:
a) Draw the cable layout to connect all the wings. Also write the name of the
topology.
b) Which would be the most suitable wing to house the server of the
company? Also mention the reason of it.
c) Suggest the device to be placed /installed in each of these WINGs to
connect all the computers within each wing.
d) Suggest the placement of a Repeater in the network with justification.