You are on page 1of 6

KENDRIYA VIDYALAYA SANGATHAN

CHENNAI REGION
Sample Question Paper
CLASS XII Maximum Marks: 35
Time: 2 hours
COMPUTER SCIENCE (Code: 083)
General Instructions:
 The question paper is divided into 3 sections – A, B and C
 Section A, consists of 7 questions (1-7). Each question carries 2 marks.
 Section B, consists of 3 questions (8-10). Each question carries 3 marks.
 Section C, consists of 3 questions (11-13). Each question carries 4 marks.
 Internal choices have been given for question numbers 7, 8 and 12.
SECTION – A
EACH QUESTION CARRIES 2 MARKS
Q. Part QUESTION Marks
No. No.
1 Name four operations possible on Stacks. 2
2 i. Expand the following: 1
PPP, SIM
ii. What is use of SMTP? 1
3 Differentiate between Alter and Update command in SQL. 2
4 A resultset is extracted from the database using the mycursor 2
object (that has been already created) by giving the following
statement.
My=mycursor.fetchmany(5)
(a) How many records will be returned by fetchmany() method?

(b) What will be the data type of My object after the given
command is executed?

5 Write the output of the queries a to d based on following tables 2

MobileMaster
M_Id M_Company M_Name M_Price M_Mf_Date
MB001 Samsung Galaxy 4500 2013-02-12
MB003 Nokia N1100 2250 2011-04-15
MB004 Micromax Unite3 4500 2016-10-17
MB005 Sony XperiaM 7500 2017-11-20
MB006 Oppo SelfieEx 8500 2010-08-21
1
MobileStock
S_Id M_Id M_Qty M_Supplier
S001 MB004 450 New Vision
S002 MB003 250 Praveen Gallery
S003 MB001 300 Classic Mobile
S004 MB006 150 A-one Mobiles
S005 MB003 150 The Mobile
S006 MB006 50 Mobile Centre
a. SELECT M_Id, SUM(M_Qty) FROM MobileStock GROUP BY
M_Id;

b. SELECT MAX(M_Date), MIN(M_Date) FROM MobileMaster;

c. SELECT M1.M_Id, M1.M_Name, M2.M_Qty, M2.M_Supplier


FROM MobileMaster M1, MobileStock M2
WHERE M1.M_Id=M2.M_Id AND M2.M_Qty>=300;

d. SELECT AVG(M_Price) FROM MobileMaster;

6 a. Give SQL Command to list all the databases. 1

b. Give one point of difference between Primary Key and Candidate 1


Key.

7 Observe the given table carefully and answer the following 2


questions:
PanNo Name Phoneno Address
CIZPW123A Rajesh 9599123456 WZ11 – Rajouri Garden,
Kumar Delhi
PARD3457L Sourabh 8933217645 Modern Apartments,
Verma Pitampura, Delhi
GDTF8762P Nishant NULL Modern Apartments,
Kumar Pitampura, Delhi
i. Name the column that might be a Primary Key constraint.
Justify your answer.
ii. Name the column that might have a Unique constraint.
Justify your answer.

OR

i. Identify Degree and Cardinality of above Table.


ii. Identify Candidate Keys of this table.

2
SECTION – B
EACH QUESTION CARRIES 3 MARKS

8 Radha has created a dictionary containing names and age as key 3


value pairs of 6 students. Write a program, with separate user
defined functions to perform the following operations:

● Push the keys (name of the student) of the dictionary into a stack,
where the corresponding value (age) is greater than 15.

● Pop and display the content of the stack.

For example:
If the sample content of the dictionary is as follows:
R={"OM":16, "JAI":15, "BOB":19, "ALI":12, "ANU":19,
"TOM":18}

The output from the program should be:


TOM ANU BOB OM

OR

SHEELA has a list containing 5 integers. You need to help Her


create a program with separate user defined functions to perform
the following operations based on this list.

● Traverse the content of the list and push the odd numbers into a
stack.

● Pop and display the content of the stack.

For Example:
If the sample Content of the list is as follows:
N=[79,98,22,35,38]
Sample Output of the code should be:
35,79

9 a A table MOVIE has been created with the following fields: 1


MOVIEID, TITLE, LANGUAGE, RATING
Write a command to add another column PLATFORM with
VARCHAR datatype.

b. Categorize following commands into DDL and DML commands? 2


drop, update, select, alter table

3
10 Meena has to create a database named MYDB in MYSQL. She 3
now needs to create a table named ITEM in the database to store
the records of various ITEMS. The table ITEMS has the following
structure:

Field name Data type Remarks


Iname Char-25 Primary key
Iid number
PDATE DATE
Total Number

Help her to complete the task by suggesting appropriate SQL


commands

SECTION – C
EACH QUESTION CARRIES 4 MARKS

11 Consider the following table: 4


Table: PharmaDB

RxID DrugID DrugName Price PharmacyName PharmacyL


ocation
R1000 5476 Amlodipine 100.00 Rx Pharmacy Pitampura,
Delhi
R1001 2345 Paracetamol 15.00 Raj Medicos Bahadurga
rh,
Haryana
R1002 1236 Nebistar 60.00 MyChemist Rajouri
Garden,
Delhi
R1003 6512 VitaPlus 150.00 MyChemist Gurgaon,H
aryana
R1004 5631 Levocitrezine 110.00 RxPharmacy South
Extension,
Delhi

Write commands in SQL for (i) to (iv):


i. To increase the price of “Amlodipine” by 50.
ii. To display all those medicines whose price is in the range
100 to 150.
iii. To display the Maximum price offered by pharmacy
located in “Gurgaon”
iv. To display the Drug ID, DrugName and Pharmacy Name
of all the records in descending order of their price.

4
12 i. Give two advantages and two disadvantages of BUS topology 2
OR
Define the following terms:
www , WAN
ii. How is packet switching different from circuit switching? 2
13 Sanskar University of Himachal Pradesh is setting up a secured 4
network for its campus at Himachal Pradesh for operating their
day-to-day office & web based activities. They are planning to
have network connectivity between four buildings. Answer the
question (a) to (d) after going through the building positions in the
campus & other details which are given below:

The distances between various buildings of university are given


as:-
Building 1 Building 2 Distance(in mtrs.)
Main Admin 50
Main Finance 110
Main Academic 70
Admin Finance 50
Finance Academic 70
Admin Academic 60
Number of Computers:-
Building No. of Computers

Main 150
Admin 75
Finance 50
Academic 60

As a network expert, you are required to give best possible


solutions for the given queries of the university administration:-
(a) Suggest cable layout for the connections between the various
buildings,
(b) Suggest the most suitable building to house the server of the
network of the
university,
(c) Suggest the placement of following devices with justification:
5
1. Switch/Hub
2. Repeater
(d) Suggest the technology out of the following for setting-up very
fast Internet
connectivity among buildings of the university
1. Optical Fibre
2. Coaxial cable
3. Ethernet Cable

You might also like