SQP - Term 2 - Set 2 - C S - XII
SQP - Term 2 - Set 2 - C S - XII
SQP - Term 2 - Set 2 - C S - XII
SAMPLE PAPER-TERM II
COMPUTER SCIENCE (083)
CLASS – XII
TIME: 2 HRS. MAX MARKS: 35
General Instructions
The question paper is divided into 3 sections – A, B and C
∙ Section A, consists of 8 questions (1-7). Each question carries 2 marks.
∙ Section B, consists of 4 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,12
SECTION-A
(Each question carries 2 marks)
Q. Part
No .No
1 Show the Stack’s status after each of the following operations. Show position of top by 2
underlining the element.Stack s is initially empty.
i)s.push(10) ii)s.push(20)
iii)s.pop() iv)s.push(15)
v)s.push(20)
2 (i) Expand the following: 1
NIC,ARPANET
(ii) Which of the following is omnidirectional? 1
Infrared, Microwave, Radio wave
3 Differentiate between order by and group by with example. 2
4 The ‘STUDENT’ table is stored in the database ‘SCHOOL’ in MySQL. The database 2
credentials include host as ‘localhost’, user as ‘root’ and password as ‘cloud’. Write
python script to do the following:
(ii) Which keyword is used to eliminate duplicate values in a column while displaying?
1
7 Consider the following table Student. 2
SUBJECT MARK
CS 25
MATHS 30
PHYSICS 25
ENGLISH 36
CHEMISTRY 29
OR
a)Update the mark of ENGLISH as 30 using SQL Command.
b)Write SQL command to display details like data types,name of column,constraints etc.
of a table.
SECTION -B
Each question carries 3 marks
8 Mr.Ajay has created a list of elements. Help him to write a program in python with 3
functions, PushEl(element) and PopEl(element) to add a new element and delete an
element from a List of element Description, considering them to act as push and pop
operations of the Stack data structure . Push the element into the stack only when the
element is divisible by 4.
Table:SalesPesron
SID OrderId Area
2
a)Suggest the foreign key for the table SalesPerson.
b)Name the data types of the columns OrderDate and OrderAmount .
4
(a) Display NAME of all doctors who are in “MEDICINE” and having more than 10
years experience from table DOCTOR.
3
(b) Display the average salary of all doctors working in “ENT” department using
the tables DOCTOR and SALARY. Salary=BASIC+ALLOWANCE.
(c) To display total number of lady doctors.
(d) To display department wise maximum year of experience.
13 The NEW INDIA Organization has set up its new Branch at Mizoram for its office and
web based activities .It has 4 wings to building as shown in the diagram
Wing X To Wing Z 40 m
Wing Z To Wing Y 60 m
Wing Z To Wing U 90 m
Number of computers
Wing X 50
Wing Z 130
Wing Y 40
Wing U 15
(i) Suggest a suitable layout of connection between the wings and topology.
(ii) Suggest a suitable place (i.e. wing) to house the server of this organization with a
suitable reason with justification.
4
(iii) Suggest the placement of the following devices with justification.
(a)Repeater (b) Hub/Switch
(iv) Suggest the most suitable wired medium for efficiently connecting each computer
installed in every building out of the following network cables.
Co-axial cable
Ethernet cable