Class 12 Cs Ms Sample
Class 12 Cs Ms Sample
CHENNAI REGION
MARKING SCHEME
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
Ans: PUSH, POP, PEEK, ISEMPTY, DISPLAY
(1/2 MARK FOR EACH CORRECT ANSWER)
2 i. Expand the following: 1
PPP, SIM
ANS: POINT TO POINT PROTOCOL, SUBSCRIBER IDENTITY
MODULE
(1/2 MARK FOR EACH CORRECT ANSWER)
ii. What is use of SMTP? 1
ANS: SMTP is a protocol used to transfer e-mail messages and attachments.
(1 MARK FOR CORRECT ANSWER)
3 Differentiate between Alter and Update command in SQL. 2
ANS:
S.NO. ALTER UPDATE
1 ALTER command is Data UPDATE Command is a Data
Definition Language (DDL). Manipulation Language
(DML).
2 This command make changes This command makes changes
with table structure. with data inside the table.
3 ALTER Command is used to UPDATE Command is used to
add, delete, modify the update existing records in a
attributes of the relations database.
(tables) in the database.
(1 MARK EACH FOR CORRECT DIFFERENCE)
pg. 1
4 A resultset is extracted from the database using the mycursor object (that has been 2
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?
ANS:
a. it returns as many records as passed to it as an argument. In this case,5.
b. Tuple
(1 MARK FOR EACH CORRECT ANSWER)
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
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;
pg. 2
(1/2 mark for correct answer)
6 a. Give SQL Command to list all the databases. 1
Ans: SHOW DATABASES;
(1 MARK FOR CORRECT ANSWER)
b. Give one point of difference between Primary Key and Candidate Key. 1
(1 MARK FOR ANY VALID DIFFERENCE)
7 Observe the given table carefully and answer the following questions: 2
PanNo Name Phoneno Address
CIZPW123A Rajesh 9599123456 WZ11 – Rajouri Garden, Delhi
Kumar
PARD3457L Sourabh 8933217645 Modern Apartments,
Verma Pitampura, Delhi
GDTF8762P Nishant NULL Modern Apartments,
Kumar Pitampura, Delhi
i. Name the column that might have a Primary Key constraint. Justify your answer.
ANS: PanNo As it has unique and not NULL values
(1/2 mark for identification and ½ mark for reason)
ii. Name the column that might have a Unique constraint. Justify your answer.
ANS: Phoneno, As it contains different as well as NULL values.
(1/2 mark for identification and ½ mark for reason)
OR
i. Identify Degree and Cardinality of above Table.
Ans: Degree 4, cardinality 3
(1/2 mark each for correct answer)
ii. Identify Candidate Keys of this table.
Ans: PanNo, PhoneNo, Name
(1 mark for identifying at least 2 Candidate Keys)
SECTION – B EACH QUESTION CARRIES 3 MARKS
8 Radha has created a dictionary containing names and age as key value pairs of 6 3
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:
pg. 3
N=[79,98,22,35,38]
Sample Output of the code should be:
35,79
Value points:
1 mark for correct PUSH operation
1 mark for correct POP operation
1 mark for correct function calls and displaying the output
9 a A table MOVIE has been created with the following fields: MOVIEID, TITLE, 1
LANGUAGE, RATING
Write a command to add another column PLATFORM having varchar datatype.
Alter table MOVIE
ADD PLATFORM varchar (20);
(1 mark for correct answer)
b. Categorize following commands into DDL and DML commands? 2
drop, update, select, alter table
Ans: DDL: drop, alter table. DML : update and select
(1/2 mark each for each correct answer)
10 Meena has to create a database named MYDB in MYSQL. She now needs to 3
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 tasks by suggesting appropriate SQL commands
Create database MYDB;
Use database MYDB;
Create table ITEMS (
Iname varchar(25) primary key,
Iid int,
PDATE Date,
Total int);
1 mark for correctly creating database.
2 marks for correctly creating the table.
SECTION – C
EACH QUESTION CARRIES 4 MARKS
11 Consider the following table: Table: PharmaDB 4
RxID DrugID DrugName Price PharmacyName PharmacyLocation
R1000 5476 Amlodipine 100.00 Rx Pharmacy Pitampura, Delhi
R1001 2345 Paracetamol 15.00 Raj Medicos Bahadurgarh,
Haryana
R1002 1236 Nebistar 60.00 MyChemist Rajouri Garden,
Delhi
R1003 6512 VitaPlus 150.00 MyChemist Gurgaon,Haryana
R1004 5631 Levocitrezine 110.00 RxPharmacy South
Extension,Delhi
pg. 4
Write commands in SQL for (i) to (iv):
i. To increase the price of “Amlodipine” by 50.
Ans: Update PharmaDB set price = price+50 where DrugName =
“Amlodipine”;
(½ Mark for correct usage of update )
(½ Mark for correct condition )
ii. To display all those medicines whose price is in the range 100 to 150.
Ans: Select * from PharmaDB where price between 100 and 150;
(½ Mark for correct use of Select)
(½ Mark for correct condition )
iii. To display the Maximum price offered by pharmacy located in “Gurgaon”
Ans: Select Max(Price) from PharmaDB where PharmacyLocation
like”%Gurgaon%”;
(½ Mark for correct Select statement )
(½ Mark for correct condition )
iv. To display the Drug ID, DrugName and Pharmacy Name of all the records in
descending order of their price.
Ans: Select Drug ID, DrugName,PharmacyName from PharmaDB
order by Price desc;
(½ Mark for correct use of Select )
(½ Mark for order by )
12 i. Give two advantages and two disadvantages of BUS topology 2
½ mark for each correct advantage / disadvantage
OR
Define the following terms:
www , WAN 1 mark each for correct definition.
ii. How is packet switching different from circuit switching? 2
1 mark for each correct difference (minimum two points should be given)
13 Sanskar University of Himachal Pradesh is setting up a secured network for its 4
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:
pg. 5
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
(a) Suggest cable layout for the connections between the various buildings,
Ans: Any layout (Star or Bus) with diagram. (1 mark)
(b) Suggest the most suitable building to house the server of the network of the
university,
Ans: Server should be placed at Main Building as it has the maximum
number of computers.
(1 mark for correct answer)
(c) Suggest the placement of following devices with justification:
1. Switch/Hub
2. Repeater
Hub/Switch each would be needed in all buildings to interconnect the group
of cables from the different computers in each building
A repeater needs to be placed along the wire between main building & finance
building as the distance between them is more than 100 mtr.
(½ mark for each correct placement)
(½ mark for each correct justification)
(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
Ans: Optical Fibre (1 Mark for correct answer)
pg. 6
pg. 7