Professional Documents
Culture Documents
Sample QP
Sample QP
160 | P a g e
17 Consider the table TEACHER given below. Write commands in SQK for (i) to (iii)
ID NAME DEPARTMENT HIREDATE CATEGOR GENDER SALARY
Y
1 TANIYA SOCIALSTUDIE 1994-03-17 TGT F 25000
S
2 ABHISHEK ART 1990-12-02 PRT M 20000
3 SANJANA ENGLISH 1980-05-16 PGT F 30000
4 VISHWAJEE ENGLISH 1989-10-16 TGT M 25000
T
5 AMAN HINDI 1990-01-08 PRT F 22000
6 PRITAM MATH 1980-03-17 PRT F 21000
7 RAJKUMAR SCIENCE 1994-02-09 TGT M 27000
8 SITAL MATH 1980-11-17 TGT F 24500
Attempt the following -
i To display all information about teachers of Female PGT Teachers. 1
ii To list names, departments and date of hiring of all the teachers in descending order of date of joining. 1
iii To count the number of teachers and sum of their salary department wise. 1
SECTION - 3
18 Success Institution is an educational organisation. It is planning to set up its India campus at Nepal with
its head office at Mumbai. The Nepal campus has 4 main buildings- ADMIN, ENGINEERING,
BUSINESS and MEDIA.
You as a network expert have to suggest the best network related solutions for their problems raised in (i)
to (iv), keeping in mind the distance between the buildings and other given parameters.
ADMIN ENGINEERING
BUSINESS MEDIA
161 | P a g e
Sale
Watchid Qty_Sold Quarter
W001 10 1
W003 5 1
W002 20 2
W003 10 2
W001 15 3
W002 20 3
W005 10 4
W003 15 4
Write the SQL command for the following statements:
i To display total quantity in store of unisex type watches. 1
ii To display watch name and their quantity sold in first quarter. 1
Give the output for the following SQL queries:
i SELECT WATCH_NAME, PRICE , TYPE FROM WATCHES W, SALE S WHERE 1
W.WATCHID=S.WATCHID;
ii SELECT WATCH_NAME, QTY_STORE , SUM(QTY_SOLD), FROM WATCHES W, SALE S 1
WHERE W.WATCHID = S.WATCHID GROUP BY S.WATCHID
162 | P a g e
KENDRIYA VIDYALAYA SANGATHAN, RAIPUR REGION
TERM 2 EXAM SET-1-2021-22
MARKING SCHEME
Class –XII SUB-Computer Sc.
Question PART - A Marks
No. Allotted
Section -1
1 C) UNDERFLOW 1
2 C) Reversing the order of items 1
3 a)1 1
4 b)peer-to-peer network 1
5 a)modulation 1
6 c)distinct 1
7 b)Exactly, Atleast 1
8 a)count(attribute) 1
Part B
9 Expand the following- 2
i SIMPLE MAIL TRANSFER PROTOCOL
ii DYNAMIC HOST CONFIGURATION PROTOCOL
iii HYPERTEXT TRANSFER PROTOCOL
iv TRANSMISSION CONTROL PROTOCOL
10 When a hosting provider allocates space on a web server for a website to store its files, they are 2
hosting a website.
OR
Video Conferencing Chat 2
Audio as well Visuals are shared Only text communicated.
High Bandwidth required Works with low bandwidth also.
11 CHAR is used to occupy fixed memory irrespective of the actual values but VARCHAR uses only 2
that much memory which is used actually for the entered values.
E.g. CHAR(10) will occupy always 10 bytes in memory no matter how many characters are used
in values. But VARCHAR will uses only that much bytes of memory whose values are passed.
12 CANDIDATE KEY 2
A Candidate key is the one that is capable of becoming primary key.
CARDINALITY OF A RELATION
Cardinality of a relation represents number of rows in the relation.
13 ORDER BY for sorting 2
GROUP BY for grouping data
14 city=[] 3
def PUSHCITY(cityname,pincode):
city.insert(0,[cityname,pincode])
OR
city=[]
def POPCITY():
if len(city)==0:
print(“Underflow”)
return None
return city.pop()
15 ANSWER
i d) DELETE * FROM WORKER; 1
ii WORKER_ID 1
iii ALTER TABLE WORKER MODIFY FIRST_NAME VARCHAR(20) 1
iv DESC WORKER/DESCRIBE WORKER; 1
16 ANSWER
i 43000
ii MAX(DOB) MIN(DOB)
08-10-1995 05-07-1993
iii GENDER COUNT(*)
F 3
M 3
163 | P a g e
17 ANSWER
iii Firewall 1
iv c) Video Conferencing 1
19 ANSWER
i SELECT SUM(QTY_STORE) FROM WATCHES WHERE TYPE =’Unisex’; 1
ii SELECT WATCH_NAME, QTY_SOLD FROM WATCHES W, SALE S WHERE 1
S.WATCHID=S.WATCHID AND QUARTER=1;
164 | P a g e