PM SHRI KENDRIYA VIDYALAYA NO.
4 JAIPUR
RETEST [ PERIODIC TEST – II]
SUB – INFORMATION PRACTICES CLASS-XI
[Link]-90 MIN [Link] – 70
SECTION - A
[Link] QUESTIONS MARKS
1.
Which of the following is a valid SQL command to retrieve all records from a table named "Students"? 1
a) FETCH * FROM Students;
b) GET * FROM Students;
c) SELECT * FROM Students;
d) SHOW * FROM Students;
2.
Which SQL clause is used to filter records based on a specific condi�on? 1
a) ORDER BY
b) HAVING
c) WHERE
d) GROUP BY
3.
What is the purpose of the PRIMARY KEY constraint in a table? 1
a) To allow duplicate values in a column
b) To uniquely iden�fy each row in the table
c) To store only numeric values
d) To create an index on the table
4.
Which SQL command is used to add a new column to an exis�ng table? 1
a) ALTER TABLE table_name ADD column_name datatype;
b) MODIFY TABLE table_name ADD column_name datatype;
c) INSERT INTO table_name ADD column_name datatype;
d) UPDATE TABLE table_name ADD column_name datatype;
5.
What will happen if a DELETE command is run without a WHERE clause? 1
a) It will delete only NULL values
b) It will delete only the first row
c) It will delete all rows in the table
d) It will return an error
6.
Which of the following is a key feature of Cloud Compu�ng? 1
a) High setup costs
b) Requires only local storage
c) On-demand resource availability
d) Manual hardware upgrades
7.
Which SQL command is used to modify exis�ng records in a table? 1
a) MODIFY
b) UPDATE
c) CHANGE
d) ALTER
8.
In SQL, which constraint ensures that a column cannot have NULL values? 1
a) UNIQUE b) PRIMARY KEY c) NOT NULL d) FOREIGN KEY
9.
Asser�on (A): The ORDER BY clause in SQL is used to sort the result set in ascending or descending 1
order.
Reason (R): The ORDER BY clause can only be used with numerical columns.
a) Both A and R are true, and R is the correct explana�on of A.
b) Both A and R are true, but R is not the correct explana�on of A.
c) A is true, but R is false.
d) A is false, but R is true.
10.
Asser�on (A): In a rela�onal database, each table must have a unique primary key to ensure the 1
integrity of the data.
Reason (R): The primary key uniquely iden�fies each record in a table and cannot contain null values. a)
Both A and R are true, and R is the correct explana�on of A.
b) Both A and R are true, but R is not the correct explana�on of A.
c) A is true, but R is false.
d) A is false, but R is true.
SECTION - B
11.
What is Difference between DDL and DML. Explain by giving examples of commands. 2
12.
Differentiate between cloud computing and grid computing with suitable examples. 2
13.
Write full form of: 2
a) DDL – c) IaaS -
b) SaaS - d) DML –
14.
Ajay is using a table Students with following columns: 2
Name, Class, StreamId, StreamName.
He needs to display names of students who have not been assigned any stream or have been
assigned Stream_Name that ends with ‘computers’.
Help him by wri�ng a SQL query for him.
SECTION - C
15.
a) Write an SQL query to create a table named "Students" with the following fields: 4
- RollNo (Integer, Primary Key)
- Name (Varchar(100)) (2+1+1)
- Age (Integer)
- Marks (Float)
b) Write an SQL query to insert 2 records in this table
c) Write an SQL query to add a column DOB in this table
16.
Write MySql command to create database and the table as per given structure Database: School 4
Table: Student
17.
i. Which command is used to work on database. 4
ii. Sanya is using a table Shop with following columns:
Name, S_ID , Sales, Quarter ,Year
she needs to display names of articles for which sale is > 50000 in year 2020
she wrote the following command, which did not give the desired result.
SELECT Name From Shop WHERE year is 2020 and Sales > ‘50000’
Help her to run the query by removing the error and write correct query.
SECTION - D
18.
Consider the table Company given below and write suitable SQL queries of the following: 5
Table: Company
(a) Display the Name and salary of employees whose name end with ‘y’
(b) Display name of all employees whose sec�on is ‘Sales’
(c) Display ID and Name all those students whose salary is in the range of 25000 to 30000.
(both values included)
(d) Display the details of all those employees whose skill is Medium
(e) Display the details of all those employees whose salary is not men�oned
19.
Consider the table ‘Student’ given below and write suitable SQL queries of the following: 5
i. Display the Name and marks of students whose name start with ‘a’
ii. Display name of all those students whose subject is Hindi.
iii. Display ID and Name all those students whose number of marks is in the range of 30 to 40.
(both values included)
iv. Display the details of all those students who have not been assigned any subject.
v. Display the details of all those students Class is either X or XI