Professional Documents
Culture Documents
Class Xii CS PB Term 2 Question Paper
Class Xii CS PB Term 2 Question Paper
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.no Part no Question Marks
1 Give any two real life applications where stacks can be used. 2
2 i Expand the following: POP, TCP 1
ii Which of the following communication medium,will you suggest to be 1
procured by the companyfor connecting their local office units in Pondicherry
for very effective (high speed)communication?
Telephone cable, Ethernet Cable, Optical Fibre
3 Differentiate between Primary Key and Foreign Key in RDBMS. 2
4 A result-set is extracted from the database using the cursor object (that has 2
been already created) by giving the following statement (Assume table
contains 10 tuples).
mydata=cursor.fetchall()
OR
a. Define the Degree and Cardinality of a table.
b. Consider the following tables “Students” and “Books”. Identify the
Foreign key from the given tables. Justify your answer.
Table :Student
Admno Name
1565 UPEN
1324 KUNAL
1472 VIPIN
6512 VEER
Table :Books
Book_ID Book_Name Admno
B174 Tao Te Ching 1565
B225 Republic 1472
B887 The King 6512
SECTION – B
Each question carries 3 marks
8 Vishwas has created a dictionary “employee” with employee name as key and 3
their salary as values. Write a program to perform the following operations in
Python:
a. Push the names of those employees into a stack where the salary is less
than 50000
b. Pop the elements of the stack and display those names.
OR
Hashim has created a list ‘mylist’ of 10 integers. You have to help him to
create a stack by performing the following functions in Python:
a. Traverse each element of the list and push all those numbers into the
stack which are divisible by 3.
b. Pop from the stack and display all the content.
9 i A table “Teachers” has three columns: TID, TNAME, SUBJECT. Write a 1
SQL Command to add a new column in this table SALARY (of Integer type).
ii Categorise the DDL and DML Commands from the following: 2
DROP, ALTER, SELECT, DELETE, INSERT, UPDATE
10 Rashmi needs to create a database “School” using MySQL. 3
After that, she needs to create a table “Labs” to keep the record of all the
laboratories in the school. The table “Labs” should have the following
structure:
FIELD NAME DATA TYPE REMARKS
LABID INT PRIMARY KEY
LABNAME VARCHAR
LABATTENDANT VARCHAR
Table : ACCESSORIES
No Name Price ID
1 Mouse 600 101
2 Keyboards 670 103
3 Webcams 2000 100
4 Cables 200 101
5 LCD 6000 102