COMPUTER SCIENCE QP Kerala Sahodaya
COMPUTER SCIENCE QP Kerala Sahodaya
COMPUTER SCIENCE QP Kerala Sahodaya
MAX. MARKS: 35
General Instructions
Section -A
Each question carries 2 marks
Q.No Part Question Marks
No.
1. What is LIFO data structure? Give any two applications of a stack? 2
2. a. 1
Compare the Hub and Switch?
b. 1
Expand DNS, URL?
3. 2
Write two points of difference between DDL & DML commands?
4. 1. 1
Write two examples of DBMS software?
2. 1
Differentiate between fetchone() and fetchall() methods?
5.` Consider the following table FITNESS with details about fitness products being 2
sold in the store. Write output for (i) to (iv)
Table: FITNESS
PCODE PNAME PRICE MANUFACTURER
P1 Treadmill 21000 Coscore
P2 Bike 20000 Aone
P3 Cross 14000 Reliable
Trainer
P4 Multi Gym 34000 Coscore
P5 Massage chair 5500 Regrosene
i. SELECT PCODE,PRICE FROM FITNESS WHERE MANUFACTURER
LIKE “%e”;
ii. SELECT COUNT (DISTINCT MANUFACTURER) FROM FITNESS;
1
iii. SELECT MAX (PRICE) FROM FITNESS;
iv. SELECT PCODE,PNAME FROM FITNESS WHERE MANUFACTURER IS
Coscore;
6. 1. Write the SQL command to display the structure of the table DEPT? 1
2. Explain the concept of CARTESIAN JOIN with example? 1
7. Consider the table TEACHER given below. Write commands in SQL for (a) 2
to (b)
Table:TEACHER
TNo. T_Name Age Department Dateofadm Salary Sex
001 Jugal 34 Computer 10-01-1997 12000 M
002 Sharmila 31 History 24-03-1998 20000 F
003 Sandeep 32 Maths 12-12-1996 30000 M
004 Sangeeta 35 History 01-07-1999 40000 F
005 Rakesh 42 Maths 05-09-1997 25000 M
006 Shyam 50 History 37/06/98 30000 M
007 Shivam 44 Computer 25-02-1997 21000 M
008 Shalakha 33 Maths 31-07-1997 20000 F
Table:STUDENT
Roll TNo. Name Age Sex
No
100 001 Harikesh 34 M
101 002 Rudra 31 F
102 003 Sreedev 32 M
103 004 Gouthami 35 F
104 005 Roopesh 42 M
105 006 Sharan 50 M
106 007 Shivadaksh 44 M
107 008 Malavika 33 F
•
Push the keys (name of the student) of the dictionary into a
stack, where the corresponding value (marks) is greater than
79.
• Pop and display the content of the stack.
For example:
If the sample content of the dictionary is as
follows:
R={"RAKESH":70, "OMESH":50, "VISWAS":70, "ANITA":80,
"ANUSHRI":90}
2
OR
Alam has a list containing marks of 10 students . You need to help him
create a program with
separate user defined functions to perform the following operations
based on this list.
● Traverse the content of the list and push the numbers higher than 33
into a stack.
● Pop and display the content of the stack.
For Example:
If the sample Content of the list is as follows:
N=[12, 13, 34, 56, 21, 79, 98, 22, 35, 38]
38,35,98,79,56,34
9. a. A table, PURCHASE has been created in a database with the following fields: 2
PCODE, PNAME, QTY, PPRICE
Give the SQL command to add a new field, DISCOUNT (of type Integer) to the
PURCHASE table.
b. Write one point of difference between Delete & Drop ? 1
10. Write a Query to Create a database named as “INDUSTRY” and after 3
creating write a query to open it?
Write a SQL statement to create a table named Job under this database
industry, the table
includes columns JOB_ID, JOB_TITLE, MIN_SAL and MAX_SAL,
BONUS and make sure that the
job_id column should be primary key and job_title should not be empty.
Database :- INDUSTRY
Table:- Job
3
Section C
Each question carries 4 marks
11. 4
Write queries (a) to (d) based on the tables VEHICLE and OWNER given below:
TABLE: VEHICLE
4
13. Motherson Corporation has set up its new centre at Jaipur, Rajasthan for its office 4
and web-based activities. It has 4 blocks of buildings.
(a) Suggest and draw the cable layout to efficiently connect various blocks of
buildings within the Jaipur centre for connecting the digital devices.
(b) Suggest the placement of the following device with justification
i. Repeater
ii. Hub/Switch
(c) Which kind of network (PAN/LAN/WAN) will be formed if the Jaipur office
is connected to its head office in Mumbai?
(d)Which fast and very effective wireless transmission medium should preferably be
used to connect the head office at Mumbai with the centre at Jaipur.