0% found this document useful (0 votes)
100 views

ComputerScienceQpSet-2 72596

This document contains a 13 question pre-board exam for Class 12 Computer Science. It is divided into 3 sections - Section A contains 7 multiple choice questions worth 2 marks each, Section B contains 3 questions worth 3 marks each, and Section C contains 3 questions worth 4 marks each. The exam covers topics like data structures, SQL, networking, and computer hardware.

Uploaded by

Mridula Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

ComputerScienceQpSet-2 72596

This document contains a 13 question pre-board exam for Class 12 Computer Science. It is divided into 3 sections - Section A contains 7 multiple choice questions worth 2 marks each, Section B contains 3 questions worth 3 marks each, and Section C contains 3 questions worth 4 marks each. The exam covers topics like data structures, SQL, networking, and computer hardware.

Uploaded by

Mridula Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

BANGALORE SAHODAYA SCHOOL COMPLEX

PREBOARD EXAMINATION TERM 2


Class: XII
Session: 2021-22

Computer Science (Code 083)


Maximum Marks: 35 SET – 2 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
Question Marks
No. No.
1 What is LIFO? List stack operations. (2)
2 (i) Expand the following: POP3, VoIP (1)
(ii) Write one advantage & disadvantage of microwave. (1)
3 Name any two Numeric & string datatypes used in MySql. (2)
4 A resultset is extracted from the database using the cursor object (that has (2)
been already created) by giving the following statement.
Mydata=cursor.fetchone()
(a) How many records will be returned by fetchone() 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 sales, (2)

Saleid Qty_sold Quarter


S001 10 1
S003 5 1
S002 20 2
S003 10 2
S001 15 3
S002 20 3
S005 10 3
S003 15 4

a) select sum(Qty_sold) from sales where Quarter<4;


b) select max(Qty_sold) from sales;
c) select * from sales where Qty_sold>15 and Qty_sold like "2%";
d) select saleid from sales where Qty_sold in (10);

1|Page
6 (i) Which command is used to change the database? (1)
(ii) Write any one difference between equi join & natural join in SQL? (1)
7 Consider the table STORE, given below: (2)

Table : STORE

ItemNo ItemName Scode Quantity


I1 Sharpener Classic 23 60
I2 Ball Pen 0.25 22 50
I3 Get Pen Premium 21 150
I4 Get Pen Classic 21 250
I5 Eraser Small 22 220
I6 Eraser Big 22 110
I7 Ball Pen 0.5 21 180
(a) Identify the degree and cardinality of the table.
(b) Which field can be made as the primary key(s)?
OR
Consider the table GoodItems, given below:

ItemNo ItemName Price


I1 Sharpener 101
Classic
I2 Ball Pen 102
0.25
I3 Get Pen 103
Premium
(a) Identify the candidate key(s) from the table STORE.
(b) Which field will be considered as the foreign key if the tables STORE and
Good Items are related in a database?
SECTION – B
Each question carries 3 marks
8 Write a function in python,MakePush(Package) & MakePop(Package) to add (3)
a new package & delete a package from a list of package description using
stack data structure & its operations.
OR
Write a function in python, Push(Package) and Pop(Package) to add details
of employee contain information (Empid, Ename and Salary) in the form of
tuple in Package and delete a Package from a List of Package Description,
considering them to act as push and pop operations of the Stack data
structure .
9 (i) Sonal needs to display name of teachers, who have “0” as the third character (1)
in their name. She wrote the following query. SELECT NAME FROM
TEACHER WHERE NAME = “$$0?”; But the query isn’t producing the
result. Identify the problem.
(ii) Differentiate between DELETE and DROP table commands. (2)

2|Page
10 Nikhil wants to create Mycompany as database & table Department using (3)
SQL for his project help him by writing suitable commands. The table has
the following structure:
ColumnName DeptID DeptName
Key type Primary
Nulls/unique
Datatype NUMBER VARCHAR
Length 20

Section - C
Each Question carries 4 marks
11 Write SQL queries for (i) to (iv) based on the tables Watches & Sale. (4)

i. TO DISPLAY ALL THE DETAILS OF THOSE WATCHES WHOSE


NAME ENDS WITH ‘TIME’
ii. TO DISPLAY WATCH’S NAME AND PRICE OF THOSE
WATCHES WHICH HAVE PRICE RANGE IN BETWEEN 5000-
15000.
iii. TO DISPLAY TOTAL QUANTITY IN STORE OF UNISEX TYPE
WATCHES.
iv. TO DISPLAY WATCH NAME AND THEIR QUANTITY SOLD IN
FIRST QUARTER;

3|Page
12 (i) Write any two differences between star topology and tree topology of (2)
network.
OR
What is web hosting? What are its various categories?
(ii) How is packet switching different from circuit switching? (2)
13 Multipurpose Public School, Bengaluru is Setting up the network between its (4)
Different Wings of school campus. There are 4 wings named as SENIOR(S),
JUNIOR(J), ADMIN(A) and HOSTEL(H).

SENIOR ADMIN

JUNIOR HOSTEL

Distance between various wings is given below:

Wings NumberofComputers
WingA 20
WingS 150
WingJ 50
WingH 25
Number of Computers installed at various wings are as follows:
WingAtoWingS 100m
WingAtoWingJ 200m
WingAtoWingH 400m
WingStoWingJ 300m
WingStoWingH 100m
WingJtoWingH 450m

(i) Suggest the best wired medium and draw the cable layout to efficiently
connect various wings of Multipurpose Public School, Bengaluru.
(ii) Name the most suitable wing where the Server should be installed & Justify
your answer.
(iii) Suggest the type of network (LAN,MAN,PAN,WAN)to connect all the blocks with
suitable reason.
(iv) Suggest a device and the protocol that shall be needed to provide wireless
Internet access to all smartphone/laptop users in the campus of
Multipurpose Public School, Bengaluru.

4|Page

You might also like