New Delhi Public School Class: XI Session: 2021-22 Informatics Practices (Code 065) Periodic Test-3 (Theory)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

NEW DELHI PUBLIC SCHOOL

Class: XI Session: 2021-22


Informatics Practices (Code 065)
Periodic Test-3
(Theory)
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 Question Marks
No No.
1. What is the difference between char and varchar data type? (2)

2. (i) What is data redundancy? (1)


(ii) Write a command to create database NDPS. (1)

3. Write the SQL command for the following: (2)


i) To describe the table
ii) Open existing database

4. Define the following: Mention examples of each. (2)


i) Cardinality ii) Domain

5. Help Reshma in predicting the output of the following (2)


queries: i) select round(8.72,3); ii) select round(9.8);

[1]
6. Define the following: (2)
i) Artificial Intelligence
ii) NLP

7. Mr. Som, a HR Manager in a multinational company “Star-X (2)


world” has created the following table to store the records of
employees:
Table: Emp
Eid EName Department DOB DOJ
Star1 Ivan Sales 1994-08-28 2020-02-14
Star2 Melinda IT 1997-10-15 2021-11-19
Star3 Raj Accounts 1998-10-02 2019-04-02
Star4 Michael Sales 2000-02-17 2020-05-01
Star5 Sajal IT 2001-12-05 2018-06-13
Star6 John Accounts 1995-01-03 2019-07-15
Star7 Julia Sales 1985-11-13 2020-08-19

He has written following queries:


i) select * from emp Where EName
Like’J%’;
ii) select ENAME from emp where
DOJ>’2020-01-01’;

Predict the output.


OR

Based on the table given above, help Mr. Som writing queries for
the following task:
i) To display the name of those employee whose starts
with ‘J’
ii) To display the name of those employees who works
in either IT Department or sales Department
SECTION – B
Each question carries 3 marks

[2]
8. What is MySQL? What are its functions and features? (3)
OR

Ms.Saumya is working on a MySQL table named ‘Hotel’ having

following structure:

She need to perform following task on the table:


i. To Display Different Cities .
ii. To display the Structure of Hotel table.
iii. To Display name and mobile_no from hotel table

Write the query to achieve the desired task.


9. Anita has created the following table with the name (3)
‘ORDER’:

[3]
10. Charu has to create a database named STORE in MYSQL. (3)
She now needs to create a table named CUSTOMER in the
database to store the records of various cities across the globe.
The table CUSTOMER has the following structure:

Section C

Each question carries 4 marks

11. Carefully observe the following table named ‘stock’: (4)

Table: stock
Pid PName Category Qty Price
1 Keyboard IO 15 450
2 Mouse IO 10 350
3 Wifi-router NW 5 2600
4 Switch NW 3 3000
5 Monitor O 10 4500
6 Printer O 4 17000

Write SQL queries for the following:


(a) To display the records in decreasing order of price.
(b) To display category and category wise total quantities of
products.
(c) To display the category and its average price.
(d) To display category and category wise highest price of the
products.

[4]
12. (4)

i) Name the column that might have a Primary Key constraint.


Justify your answer.
ii) Name the Candidate Key(s) according to you. Justify your answer.

Mrs. Sharma is the class teacher of Class ‘XII A’ She wants to create a
table ‘Student’ to store details of her class.
i) Which of the following can be the attributes of Student table?
a) RollNo b) “Amit” c) Name d) 25
ii) Name the Primary key of the table ‘Student’. State reason for
choosing it.

OR
Consider the following MOVIE database and answer the SQL queries
based on it.

a) Retrieve movies information without mentioning their column


names.
b) List business done by the movies showing only MovieID,
MovieName and BusinessCost.
c) List the different categories of movies.

[5]
d) Find the net profit of each movie showing its ID, Name and Net
Profit. (Hint: Net Profit = BusinessCost – ProductionCost) Make sure
that the new column name is labelled as NetProfit.

Q13 Differentiate between the following commands: (4)


a) ALTER and UPDATE
b) DELETE and DROP

[6]

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy