You are on page 1of 4

KENDRIYA VIDYALAYA SANGATHAN, JAIPUR REGION

TERM 2 PREBOARD EXAMINATIONS (2021-22)


SUBJECT: COMPUTER SCIENCE (Code: 083)
CLASS- XII
Maximum Marks: 35 Time: 2 hours
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 Questions Marks
NO. No.
1 Name any two linear Data Structures? What do you understand by the term 2
LIFO? Stack, List - Last in First Out
2 (i) Write the full form of HTTP and XML. 1
(ii) Out of the following, which transmission media requires a Line of Sight? 1
Satellite, Infrared, Microwave, Radio waves
3 How the data type CHAR differs from VARCHAR in MySql? Illustrate with an 2
example?
4 Fetchm Which is the most appropriate method to access 5 records from a cursor 2
any(5) object? Write down complete python statement depicting how it will be used?
5 Consider the following table named DEBTOR and write the output of the 2
following queries: -
DEBTOR
P_NO PERSON_NAME AMOUNT RATING CITY
111 KAMLESH KUMAR 50000 A JAIPUR
112 SANDEEP JAIN 25000 B UDAIPUR
113 RAJESH SHARMA 30000 B AJMER
114 OMESH 20000 C JAIPUR
115 RITIK GUPTA 70000 C KOTA
116 RAJAT 40000 C UDAIPUR
117 AMAN GUPTA 60000 A UDAIPUR

a) SELECT DISTINCT CITY FROM DEBTOR;


b) SELECT PERSON_NAME, RATING FROM DEBTOR
WHERE PERSON_NAME LIKE “%A”;
c) SELECT COUNT(*) FROM DEBTOR WHERE RATING=”C”;
d) SELECT AVG(AMOUNT) FROM DEBTOR
WHERE P_NO IN(111,113,115);
6 (i) Monika created a database in MySql. Next day she wanted to create a table 1
inside it. Which command she has to use before writing CREATE TABLE
command? Use command

(ii) What is Equi Join? 1

7 Answer following questions based on the tables given below: - 2

Table - PRODUCT
Product_No Product_Name Price Date_of_Entry
536 Soap 5.00 2021-11-30
204 Paste 10.00 2021-04-30
427 Tea 3.00 2021-07-31
1027 Oil 2.00 2021-10-31
1038 Toffee 6.00 2021-09-30

Table - Bill
Bill_no Bill_Date Amount Product_No
10001 2022-01-02 15520.00 536
10002 2022-01-05 10320.00 204
10005 2022-01-09 10770.00 427
10011 2022-01-25 10000.00 1027
10028 2022-01-27 12000.00 1038

a. What will be the Primary Key of Product relation? Justify your answer.
b. What is the Cardinality and Degree of Product relation?
OR
a. Is there any foreign key in any of the above tables? If yes mention its
name. Product_No
b. What will be Degree and Cardinality of Bill relation? 4, 5
SECTION – B
Each question carries 3 marks
8 Assume a dictionary names KVS having Region and Number of Schools as 3
key-value pairs. Write a program with separate user-defined functions to
perform the following operations:

 Push the keys (Name of Region) of the dictionary into a stack, where the
corresponding value (Number of Schools) is more than 50.
 Pop and display the content of the stack.

For example
If the sample content of the dictionary is as follows:
KVS={"DELHI":55, “JAMMU”:27, "JAIPUR":76, "GURUGRAM":47, "AGRA":60}

The output from the program should be:


AGRA JAIPUR DELHI
OR
A list NUM has some integer numbers. Write down a program to prepare a
stack of even integers from the given list NUM. The program should have user-
defined functions which perform the following operations based on this list.
 Traverse the content of the list and push the EVEN numbers onto the
stack.
 Pop and display the content of the stack.

For Example:
If the Sample Content of the list is as follows:
N=[3,5,10,13,21,28,45,56,60,78]

Sample Output of the code should be:


10, 28,56, 60
9 (i) A table TEACHER has attributes CODE, NAME, POST, and CATEGORY. Write 1
down the command to delete the attribute CATEGORY from this table.
(ii) Identify which is the valid or invalid statement out of the followings: - 2
a) DELETE and DROP TABLE commands are the part of DDL.
b) SELECT and UPDATE are the part of DML.

10 Write the queries to create a database named as ENTERPRIZE and then 3


create the following table STAFF in it as described below: -

TABLE -STAFF
StaffID Char type data with length 5 PRIMARY KEY

FirstName varchar type data with length 20 NOT NULL


LastName varchar type data with length 15
Gender Char type data with length 1
SECTION C
Each question carries 4 marks
11 Consider following tables and answer queries (i) to (iv) 4
DEALER
DCODE DEALER_NAME CITY
1 ACL Pvt NEW DELHI
2 INDIA Agency JAIPUR
3 Rajdeep Ltd UDAIPUR
4 G&G Corp JAIPUR
CAR
ID MODEL MAKER PRICE DCODE
C1 HONDA CITY HONDA 15.0 2
B2 CRETA HYUNDAI 14.0 1
T3 XUV-500 MAHINDRA 8.50 3
Note – Price is given in Lakhs

a) Display Model and Maker name whose price is more than 10 Lakhs in
the descending order of price.
b) Show Model and their respective Dealer name.
c) Display dealer name who is from JAIPUR and dealing with cars of
HONDA.select dealer_name, city,maker from dealer d, car c where d.dcode=c.dcode,city=‘JAIPUR’,maker=‘HONDA’;
d) Display total number of dealer of each city.

12 (i) What are the differences between LAN and WAN? (Any four) 2
OR
Define Web page and URL?
(ii) Identify the Switching Technique: 2
a) In this technique the resources are reserved during the whole
communication process.
b) In this technique the data is broken into n number of smaller chunks of
data before transmission.
13 TCS Pvt. Ltd. is opening its new software development branch in Jaipur. The 4
campus of this branch has 4 wings as shown in the diagram:

Wing to Wing Distance: Number of Computers:

Wing X to Wing Z 70m Wing X 50


Wing Z to Wing Y 60m Wing Z 130
Wing Y to Wing X 135m Wing Y 40
Wing Y to Wing U 70m Wing U 15
Wing X to Wing U 165m
Wing Z to Wing U 80m

a) Draw the cable layout to connect all the wings. Also write the name of the
topology.
b) Which would be the most suitable wing to house the server of the
company? Also mention the reason of it.
c) Suggest the device to be placed /installed in each of these WINGs to
connect all the computers within each wing.
d) Suggest the placement of a Repeater in the network with justification.

You might also like