Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

CLASS XII

PRE BOARD QUESTION PAPER TERM-2


COMPUTER SCIENCE (083)
Time: 2 hours Maximum Marks: 35

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()

(a) How many records will be returned by fetchall() method?


(b) What will be the datatype of Mydata object after the given command is
executed?
5 Write the output of the queries (a) to (d) based on the table Student given 2
below:
Student
Adm Name Subject Fees Age Gender
1 JATIN BIOLOGY 650 17 M
MANHAS
2 VANSH HINDI 600 18 F
KHATRI
3 SIMRAN COMPUTER 600 17 F
4 ABHISHEK COMPUTER 600 16 M
5 KUNAL ECONOMICS 470 18 M
6 LALIT KALA BIOLOGY 650 18 M
7 MANISH HINDI 770 17 F
8 JAGDEEP ENGLISH 800 16 M

a. SELECT Name FROM Student WHERE Name LIKE “J%”;


b. SELECT Adm, Age FROM Student WHERE Subject = “BIOLOGY”;
c. SELECT MAX(Fees), Name FROM Student;
d. SELECT Name, Age FROM Student WHERE Subject = “Hindi” AND
Fees > 650;
6 i Write the SQL Command to display all the rows from a table. 1
ii If there are ‘m’ rows in table-1 and ‘n’ rows in table-2, then how many rows 1
will be present in the Cartesian product of both the tables?
7 Consider the table “Employee” as follows: 2
Empid Empname Salary
E01 Vishal 40000
E02 Sahil 15000
E03 Sandeep 65000
E04 Yogesh 15300

a. Identify the Degree and Cardinality of the table Employee given.


b. Which field should be made the primary key in the given table
Employee? Justify.

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

Help Rashmi to complete the specified task by suggesting appropriate MySQL


Queries.
Section C
Each question carries 4 marks
11 Write queries (a) to (d) based on the tables SHOP and ACCESSORIES given 4
below:
Table :SHOP
ID SNAME AREA
100 Chaudhary & Sons GK
101 Sharma Tech CP
102 Gupta Bros. Punjabi Bagh
103 Mehta Textiles Vigyan Vihar

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

a. To display Name and Price of all the Accessories in ascending order of


their Price
b. To display Id and SName of all Shops
c. To display name of accessories whose price is less than 1000
d. To display Minimum and Maximum Price of each Name of
Accessories
12 i Give two advantages and disadvantages of a Mesh Topology. 2
OR
Explain the following terms: SMTP, Telnet
ii How is LAN different from a WAN? 2
13 XYZ Ltd. is a consultancy company. The company is planning to set up their 4
new offices in India with headquarter in Hyderabad. As a network operator,
you have to understand their requirements and suggest them the best available
solutions as per the queries submitted below. There are total 3 bocks:
Conference Block, HR Blockand Finance Block.
Block to Block distance (in metres)
FROM TO DISTANCE
HR Conference 75
HR Finance 135
Conference Finance 88

No. of computers to be installed


Block Computers
HR 130
Finance 20
Conference 70

a. Where do you suggest installing the server of the company? Justify


your answer.
b. Which network topology should be used in this network for most
efficient communication? Draw the layout.
c. What will be the total length of cable used if we use Ring topology in
this network?
d. Where do you suggest using a Switch in this network?

You might also like