0% found this document useful (0 votes)
69 views5 pages

Practice 3

1. The document provides instructions and questions for a Computer Science exam consisting of 3 sections - A, B and C worth a total of 35 marks. Section A contains 7 multiple choice questions worth 2 marks each. Section B contains 3 questions worth 3 marks each. Section C contains 3 questions worth 4 marks each. 2. The questions assess a range of topics including data structures, SQL, networking, databases, and more. Students are asked to write queries, define terms, differentiate between concepts, and make recommendations for setting up a school network. 3. Detailed questions include writing Python functions to simulate a stack, creating an SQL table, suggesting a topology and equipment placement for a school network, and more.

Uploaded by

Ajoy A G
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)
69 views5 pages

Practice 3

1. The document provides instructions and questions for a Computer Science exam consisting of 3 sections - A, B and C worth a total of 35 marks. Section A contains 7 multiple choice questions worth 2 marks each. Section B contains 3 questions worth 3 marks each. Section C contains 3 questions worth 4 marks each. 2. The questions assess a range of topics including data structures, SQL, networking, databases, and more. Students are asked to write queries, define terms, differentiate between concepts, and make recommendations for setting up a school network. 3. Detailed questions include writing Python functions to simulate a stack, creating an SQL table, suggesting a topology and equipment placement for a school network, and more.

Uploaded by

Ajoy A G
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/ 5

PRACTICE PAPER - 3

Std : XII(CBSE) Marks : 35


Date : 03.06.2022 COMPUTER SCIENCE Time : 2 hours.
General Instructions :
1. The question paper is divided into 3 Sections - A, B and C
2. Section A consist of 7 Questions (1-7). Each question carries 2 marks.
3. Section B consist of 3 Questions (8-10). Each question carries 3 marks.
4. Section C consist of 3 Questions (11-13). Each question carries 4 marks.
5. Internal choices have been given for question numbers – 7, 8 and 12.

Section-A
Each question caries 2 marks
Q. Par Question Mar
N t ks
o No.
1. What are the differences between Linear and Non-linear data structure? (2)
2. (i) Expand the following: (1)
GSM , WiFi
(ii) Arrange the following in descending order. (1)
2Mbps , 10Kbps, 5Gbps, 1Tbps, 1000bps
3. Differentiate between Unique and Distinct keywords. (2)
4. (a) When we should use commit() in MySQL – Python connectivity? (2)
(b) What are the functions used to retrieve data from result set?
5. (2)
Write output for queries (a) to (d) based on the tables Watches’ and Sale
given below.
2

a. SELECT MAX (PRICE), MIN(QTY_STORE) FROM WATCHES;


b. SELECT QUARTER, SUM(QTY SOLD) FROM SALE GROUP
BY QUARTER;
c. SELECT WATCH_NAME, PRICE, TYPE FROM WATCHES W,
SALE S WHERE W. WATCH1D!=S.WATCHID;
d. SELECT WATCH_NAME, QTYSTORE, SUM (QTY_SOLD),
QTY_STORESUM (QTYSOLD) “STOCK” FROM WATCHES
W, SALE S WHERE W. WATCHID = S.WATCHID GROUP BY
S.WATCHID;
6. (i) Which command is used to select the database? (1)
(ii) What are the commands available in DCL? (1)
7. (2)
Consider the following tables CABHUB and CUSTOMER and answer
the following questions :

a. Identify the suitable field to made as Primary key of CABHUB


table..
b. What will be the degree and cardinality of CUSTOMER table?
OR
a. Identify the candidate keys from the CABHUB table.
3
b. What is the degree and cardinality of CABHUB table after adding
three records and deleting two attributes?
Section-B
Each question caries 3 marks

8. Write a function in python, MakePush(Package) and MakePop(Package) (3)

to add a new 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
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) Deepika wants to remove all rows from the table BANK. But he needs to (1)

maintain the structure of the table. Which command is used to implement


the same?
(ii) Categorize following commands into DCL and TCL commands? (2)
GRANT, SAVE POINT, ROLL BACK, REVOKE, COMMIT
1 Swetha has to create a table named SCHOOL in the database to store (3)
0. the records of various students. The table SCHOOL has the
following structure:
Table: SCHOOL
FIELD NAME DATA TYPE REMARKS
ROLLNO INTEGER PRIMARY KEY
SNAME CHAR(30)
AGE INTEGER DEFAULT 18
CLASSNAME INTEGER NOT NULL
ADDRESS CHAR(30)
CITY VACHAR(20)

Help her to complete the task by suggesting appropriate SQL


commands.
Section-C
Each question caries 4 marks

1 (4)
Consider the following tables SCHOOL and ADMIN and answer this
1.
question :
4

Write SQL statements for the following:


a. To display TEACHERNAME, PERIODS of all teachers whose
periods are more than 25.
b. To display all the information from the table SCHOOL in
descending order of experience.
c. To display DESIGNATION without dupli¬cate entries from the
table ADMIN.
d. To display TEACHERNAME, CODE and corresponding
DESIGNATION from tables SCHOOL and ADMIN of Male
teachers.
1 (i) Give two advantages and two disadvantages of Ring topology (2)
2. OR
Define the following terms:
Web page , Website
(ii) Differentiate Switch and Router. (2)
1 Vidya Senior Secondary Public School in Nainital is setting up the (4)
3. network between its different wings. There are 4 wings named as
SENIOR(S), JUNIOR(J), ADMIN(A) and HOSTEL(H).
5

Distance between various wings are given below:

a. Suggest a suitable Topology for networking the computers of all


wings.
b. Name the most suitable wing where the Server should be installed.
Justify your answer.
c. Suggest where all should Hub(s)/Switch(es) be placed in the
network.
d. Which communication medium would you suggest to connect this
school with its main branch in Delhi ?

You might also like