Comp Sci Cluster Paper
Comp Sci Cluster Paper
General Instructions
The question paper is divided into 3 sections - A,B and C
(1)
b) Why is stack referred as LIFo data structure? (1)
a) Which methodffunction) is used while changing the data of the database table
with the connection object so that the changes are reflected in the database?
(1)
2
data = curobj.fetchone()
data1 curobj.fetchnany(3)
print(curobj.rowcount)
5. Write the output of the queries (a) to (d) based on the table, EQUIPMENT given
below: (2)
TABLE:EQUIPMENT
EONo EQName QDateofPurchas
EI Safety goggles 60 2019-12-20
E4 Funnels 80 2019-10-10
E5 Volumetric flasks 90 2019-12-08
TABLE B0OK
Bookid Booktitle Price
1001 PYTHON 595
1002 WEB DESIGN 675
1003 Al 500
TABLE: SALES
STOREID AMT
S01 15000
S02 14000
(OR)
b) Consider the table given below:
TABLE: GARMENT
TABLE: FABRIC
FCODE TYPE
F04 POLYSTER
F02 COTTON
F03 SILK
FO1 TERELENE
i)Jdentify the PRIMARY KEY and ALTERNATE KEY for the Table GARMENT
ü Which is the FOREIGN KEY when these tables are related?
SECTION-B
parate user defined functions to perform the following operations based on this
list.
(3)
raverse the content of the list and push the prime numbers that are present in the
list into a stack.
(OR)
Write a program, with separate defined functions
user to perform the following
operations on a given string
Push the characters of the string into a stack
DEPTIDDEPTNAME FLOORNO
DO01 Personal
DO02 Admin NULL
DO03 Production 1
DO04 Sales NULL
i) Write a SQL command to display all the records for which the data is not entered.
(1)
ii) WriteSQL command to delete all the records from the
a
table whose
names contain the letter P. department
(1)
5
Help the scan centre to complete the task by suggesting appropriate SQL commands.
11.
Write SQL commands for the following queries (i) to (v} based on the relations
TRAINER and COURSE given below: (4)
TRAINER
2018-07-02 101
C201 PYTHON 12000
2018-07-15 103
c202 JAVA 15000
a) DISPLAY THE TRAINER NAME, CITY AND SALARY IN DESCENDING ORDER OF THEIR
HIREDATE.
b TO DISPLAY THE TRAINER ID, TRAINER NAME, CITY WHO JOINED THE INSTITUTE
IN THE YEAR 2004.
cTO DISPLAY TRAINER NAME, HIREDATE, COURSE NAME, START DATE FROM
TRAINER AND COURSE WHOSE FEES IS GREATER THAN 15000.
TO DISPLAY NUMBER OF TRAINERS FROM EACH CITY wHOSE CITY NAME STARTS
WITH "B" OR "C".
OR
i) Differentiate between Web server and web browser. Write any two popular web
browsers. (2)
i) Define Domain Naming System. Give an URL and identify its domain name. (2)
13. "Shiksha for All" is an educational NGO. It is
for its
setting up its new
web-based activities. The campus has four campus at Jaipur
below: buildings as shown in the diagram
(4)
ACCOUNTS
BUILDINGG
Number of computers:
Main Building 15
Resource Building 25
connectivity?
Fiber (ii) Ethernet Cable
Telephone Analog line (ii) Optical
ALLTHE BEST**