0% found this document useful (0 votes)
72 views4 pages

Sample Paper XII 2021-22

Uploaded by

ushadinakar30
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)
72 views4 pages

Sample Paper XII 2021-22

Uploaded by

ushadinakar30
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

SAMPLE QUESTION PAPER

COMPUTER SCIENCE (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, 12.

Section – A
Each question carries 2 marks
Q.no Part Question Marks
No.
1. Identify the correction options out of the following which are implemented by 2
Stack
a. Undo operations
b. Printer Spooling
c. Function calling
d. Expression solving
e. Keyboard buffering
f. Reverse of String
2. (i) Expand the following: 1
SMTP, URL
(ii) In which type of switching all packets must be of same size? 1
3. Difference between Primary Key and unique with respect to database. 2
4. A resultset is extracted from the table with 20 records using the cursor object (that 2
has been already created) by giving the following statement.

Records = cursor.fetchmany(3)

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


(b) What will be the datatype of Records object after the given command is
executed?
5 Write the output of queries(a) to (d) based on the table, PERIPHERALS given below
Table: EMPLOYEE 2
F_ID FNAME LNAME DEPT HIRE_DATE SALARY
102 AMIT MISHRA IT 1998-10-12 12000
103 NITIN VYAS SALES 1994-12-24 8000
104 RAKSHIT SONI SALES 2001-05-18 16000
105 RASHMI MALHOTRA ADMIN 2004-09-11 13000
106 SULEKHA SINHA ADMIN 2006-06-05 11000
107 RAVINA SIROHI IT 2007-10-22 13000

(a) Select DEPT,MAX(SALARY) from EMPLOYEE group by DEPT


(b) Select Min(HIRE_DATE) from EMPLOYEE where SALARY>=10000;
(c) SELECT FNAME,SALARY*12 ANN_SAL from EMPLOYEE WHERE PID LIKE
‘%N%’;
(d) SELECT FNAME,DEPT from EMPLOYEE where SALARY>=12000 order by
HIRE_DATE desc;
6 (i) Which command is used to open database to work? 1
(ii) Give one point between WHERE and HAVING clause 1
7 Consider the table COMPANY given below: 2

Table: COMPANY
CID NAME CITY PRODUCT NAME PRICE

111 SONY DELHI TV 89000

222 NOKIA MUMBAI MOBILE 3000

333 ONIDA DELHI TV 15000

444 SONY MUMBAI MOBILE 23000

555 SAMSUNG CHENNAI MOBILE 62000


666 DELL DELHI LAPTOP 55000

(a) Identify the Degree and Cardinality of the table


(b) Which field should be made the Primary Key? Justify your answer
OR
(a) Identify the candidate key(s) from the table COMPANY
(b) Consider the given table
Table: CUSTOMER
CUSTID NAME QTY CID

101 Rohan Sharma 20 222

102 Deepak Kumar 10 666

103 Mohan Kumar 5 111

104 Sahil Bansal 3 333

105 Neha Soni 7 444

Which field will be considered as the foreign key if the tables COMPANY and
CUSTOMER are related in database?
Section – B
Each question carries 3 marks
8 Sanjana has created a dictionary containing ProdName and Price as the Key – Value 3
pair of 8 Products. Write a program with separate user defined function to perform
the following operations:
 Push the Keys (ProdName) of the dictionary into a Stack, where
corresponding Price range is 5000-25000 (inclusive of both values).
 Pop and display the content of Stack.
For example if the content of Dictionary is as follows:
Product={“TV”:20000,”Mobile”:19999,”Camera”:4999,”Printer”:5999,
”Mouse”:499,”Keyboard”:600,”AC”:45000}

The output of the program should be :


AC Printer Mobile TV
OR
Mohit has a list of 10 integers. 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 only odd numbers in Stack
 Pop and display the content of the stack
For example:
If the sample Content of the list is as follows:
Num = [17, 25, 32, 65, 96, 56, 95, 105,33,27]
Sample Output of the code should be:
27 33 105 95 65 25 17
9. (i) A table EMP has been created in a database by Arun with the following fields: 1
EMPNO, EMPNAME, DEPT, SALARY, COMM
Write SQL command to drop the column COMM from the table EMP.
(ii) Differentiate between DDL and DML. Identify DDL and DML commands from the 2
following:
(UPDATE, ALTER, DROP, INSERT)
10 Priyanka has to create a database named COACHING in MYSQL. She now needs to 3
create a name named TRAINERS in the database to store the records of trainers.
The table TRAINERS has the following structure
Table: COVID
FIELD NAME DATA TYPE REMARKS
TID INT Primary Key
TNAME VARCHAR(30) Not null
CITY VARCHAR(30)
HIREDATE DATE
SALARY INT
SUBJECT VARCHAR(15)
MOBILE CHAR(10)
Help her to complete the task by suggesting appropriate SQL commands.

Section C
Each question carries 4 marks
11 Write queries (a) to (d) based on the table TRAINER and COURSES given below: 4
Table: TRAINER
TID TNAME CITY HIREDATE SALARY MOBILE
101 Sunaina Mumbai 2001-01-20 90000 5125912562
102 Anamika Delhi 2015-08-11 85000 5988541236
103 Minakshi Kota 2016-07-22 75000 5545210250
104 Rahul Mumbai 2020-03-08 95000 5121122012
105 Jeetu Kota 2015-08-25 125000 5632896512
106 Dipali Delhi 2015-07-19 69000 5789641100
Table: COURSES
CID CNAME FEES STARTDATE TID
C201 AGDCA 22000 2021-01-15 101
C202 ADCA 15000 2021-02-22 103
C203 DCA 10000 2020-09-12 102
C204 DDTP 9000 2020-10-05 104
C205 DHN 20000 2021-04-01 101
C206 O OEVEL 18000 2020-04-01 105
(a) To display average salary , city wise
(b) To display name of trainer and respective cname of each trainer whose
course started in the year 2020.
(c) To display tname, city, hiredate and salary of all trainers hired in month of
august in descending order of their salary
(d) To add new trainer detail with the following given values:
107, ‘Sujatha’,’Delhi’, ‘2022-01-16’,88000, 5151514141
12 (i) Give two differences between HTML and XML (2)
OR
Define the following terms:
IP Address, Web Hosting
(ii) How SMTP and POP3 are different from each other? (2)
13 Xcelencia Edu Services Ltd. is an educational organization. It is planning to setup its
India campus at Hyderabad with its head office at Delhi. The Hyderabad campus
has 4 main buildings – ADMIN, SCIENCE, BUSINESS and ARTS. You as a network
expert have to suggest the best network related solutions for their problems raised
in (i) to (iv), keeping in mind the distances between buildings and other given
parameters.

DELHI HYDERABAD
Head Office
SCIENCE

BUSINESS
ADMIN

ARTS

Distance between various buildings is given as:


ADMIN to SCIENCE 80m
ADMIN to BUSINESS 180m
SCIENCE to BUSINESS 100m
SCIENCE to ARTS 150m
BUSINESS to ARTS 100m
DELHI Head Office to 1600KM
Hyderabad Campus

Number of Computers in the buildings:


ADMIN 100
SCIENCE 85
BUSINESS 40
ARTS 12
DELHI Head Office 20

(a) Suggest the most appropriate location of the server inside the Hyderabad
Campus (out of 4 buildings) to get the best connectivity for maximum
number of computers. Justify your answer.
(b) Suggest and draw the cable layout to efficiently connect various buildings
within Hyderabad Campus for connecting the computers.
(c) Which hardware device will you suggest to be procured by the company to
be installed to protect and control the internet uses within the campus.
(d) Which of the following will you suggest to establish the online fact-to-face
communication between the people in the ADMIN office of Hyderabad
campus and Delhi Head Office
i) E-Mail
ii) Text Chat
iii) Cable TV
iv) Video Conferencing

You might also like