CBSE-CLASS-XII SERIES
Computer-science

Sql

7 previous year questions.

Volume: 7 Ques
Yield: Medium

High-Yield Trend

7
2025

Chapter Questions
7 MCQs

01
PYQ 2025
medium
computer-science ID: cbse-cla
Assertion (A): We can retrieve records from more than one table in MYSQL.
Reason (R): Foreign key is used to establish a relationship between two tables.
1
Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation for Assertion (A).
2
Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation for Assertion (A).
3
Assertion (A) is true but, Reason (R) is false.
4
Assertion (A) is false but, Reason (R) is true.
02
PYQ 2025
medium
computer-science ID: cbse-cla
State True or False:
If table A has 6 rows and 3 columns,
and table B has 5 rows and 2 columns,
the Cartesian product of A and B will have 30 rows and 5 columns.
03
PYQ 2025
medium
computer-science ID: cbse-cla
In MYSQL, which type of value should not be enclosed within quotation marks?
1
DATE
2
VARCHAR
3
FLOAT
4
CHAR
04
PYQ 2025
medium
computer-science ID: cbse-cla
Which aggregate function in SQL displays the number of values in the specified column ignoring the NULL values?
1
len()
2
count()
3
number()
4
num()
05
PYQ 2025
medium
computer-science ID: cbse-cla
Which of the following is a DML command in SQL?
1
UPDATE
2
CREATE
3
ALTER
4
DROP
06
PYQ 2025
medium
computer-science ID: cbse-cla
While creating a table, which constraint does not allow insertion of duplicate values in the table?
1
UNIQUE
2
DISTINCT
3
NOT NULL
4
HAVING
07
PYQ 2025
easy
computer-science ID: cbse-cla

Suman has created a table named WORKER with a set of records to maintain the data of the construction sites, which consists of WID, WNAME, WAGE, HOURS, TYPE, and SITEID. After creating the table, she entered data in it, which is as follows :