cs2001_2026T1_Q1_NA.pdf
Database Management System(DBMS) · Quiz 1 · Jan 2026
← Course papers · Start practice / exam
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
Question 2 MCQ · 1.0 marks
Which of the following creates the schema of a database?
Data Definition Language
Data Manipulation Language
Data Control Language
All of these
A published solution is not available for this question yet.
Question 3 MSQ · 4.0 marks
[[IMAGE:41d97408dfb8d756_4_2]]

CREATE TABLE Course (
id VARCHAR(5) PRIMARY KEY,
name VARCHAR(255),
term VARCHAR(7),
pre_requisite VARCHAR(5),
co_requisite VARCHAR(5),
instructor_id VARCHAR(5) REFERENCES Instructor(id)
)
CREATE TABLE Course (
id VARCHAR(5) PRIMARY KEY,
name VARCHAR(255),
term VARCHAR(7),
pre_requisite VARCHAR(5),
co_requisite VARCHAR(5),
instructor_id VARCHAR(5) REFERENCES Instructor.id
)
CREATE TABLE Course (
id VARCHAR(5),
name VARCHAR(255),
term VARCHAR(7),
pre_requisite VARCHAR(5),
co_requisite VARCHAR(5),
instructor_id VARCHAR(5) REFERENCES Instructor,
)
CREATE TABLE Course (
id VARCHAR(5),
name VARCHAR(255),
term VARCHAR(7),
pre_requisite VARCHAR(5),
co_requisite VARCHAR(5),
instructor_id VARCHAR(5)
PRIMARY KEY (id),
FOREIGN KEY (instructor_id) REFERENCES Instructor(id)
)
A published solution is not available for this question yet.
Question 4 MSQ · 4.0 marks
[[IMAGE:41d97408dfb8d756_5_3]]
Choose the correct option(s) from the following.

[[IMAGE:41d97408dfb8d756_5_4]]

[[IMAGE:41d97408dfb8d756_5_5]]

[[IMAGE:41d97408dfb8d756_5_6]]

[[IMAGE:41d97408dfb8d756_5_7]]

A published solution is not available for this question yet.
Question 5 MCQ · 4.0 marks
[[IMAGE:41d97408dfb8d756_6_8]]

[[IMAGE:41d97408dfb8d756_6_9]]

[[IMAGE:41d97408dfb8d756_6_10]]

[[IMAGE:41d97408dfb8d756_7_11]]

[[IMAGE:41d97408dfb8d756_7_12]]

A published solution is not available for this question yet.
Question 6 MCQ · 4.0 marks
[[IMAGE:41d97408dfb8d756_7_13]]

[[IMAGE:41d97408dfb8d756_8_14]]

[[IMAGE:41d97408dfb8d756_8_15]]

[[IMAGE:41d97408dfb8d756_8_16]]

[[IMAGE:41d97408dfb8d756_8_17]]

A published solution is not available for this question yet.
Question 7 MCQ · 4.0 marks
[[IMAGE:41d97408dfb8d756_9_18]]

WITH AvgMarks AS (
SELECT s.student_id, s.student_name, AVG(m.marks) AS avg_marks
FROM Student s JOIN Marks m ON s.student_id = m.student_id
GROUP BY s.student_id, s.student_name
)
SELECT * FROM AvgMarks WHERE avg_marks > 60
CREATE VIEW AvgMarks AS (
SELECT s.student_id, s.student_name, AVG(m.marks) AS avg_marks
FROM Student s JOIN Marks m ON s.student_id = m.student_id
WHERE m.marks > 60
GROUP BY s.student_id
)
SELECT * FROM AvgMarks
WITH AvgMarks AS (
SELECT s.student_id, s.student_name, AVG(m.marks) AS avg_marks
FROM Student s JOIN Marks m ON s.student_id = m.student_id
)
SELECT * FROM AvgMarks WHERE avg_marks > 60
SELECT student_id, student_name, AVG(marks)
FROM Student NATURAL JOIN Marks
WHERE AVG(marks) > 60
A published solution is not available for this question yet.
Question 8 MCQ · 4.0 marks
[[IMAGE:41d97408dfb8d756_10_19]]

a-8, b-8, c-8, d-5, e-6
a-8, b-7, c-7, d-4, e-7
a-8, b-8, c-7, d-5, e-8
a-8, b-7, c-6, d-4, e-6
A published solution is not available for this question yet.
Question 9 NAT · 3.0 marks
[[IMAGE:41d97408dfb8d756_11_20]]

A published solution is not available for this question yet.
Question 10 MCQ · 3.0 marks
[[IMAGE:41d97408dfb8d756_12_21]]

The table is empty.
Only movies 201 (Baahubali), 203 (RRR), 204 (Roja), and 207 (Bombay) remain.
Only movies 202 (PK) and 206 (3 Idiots) remain.
The delete fails due to foreign key constraint violation.
A published solution is not available for this question yet.
Question 11 MCQ · 3.0 marks
[[IMAGE:41d97408dfb8d756_13_22]]

[[IMAGE:41d97408dfb8d756_13_23]]

[[IMAGE:41d97408dfb8d756_13_24]]

[[IMAGE:41d97408dfb8d756_13_25]]

[[IMAGE:41d97408dfb8d756_14_26]]

A published solution is not available for this question yet.
Question 12 MCQ · 2.0 marks
[[IMAGE:41d97408dfb8d756_14_27]]

[[IMAGE:41d97408dfb8d756_14_28]]

[[IMAGE:41d97408dfb8d756_14_29]]

[[IMAGE:41d97408dfb8d756_15_30]]

[[IMAGE:41d97408dfb8d756_15_31]]

A published solution is not available for this question yet.
Question 13 NAT · 4.0 marks
[[IMAGE:41d97408dfb8d756_15_32]]

A published solution is not available for this question yet.
Question 14 MSQ · 2.0 marks
Which of the following options are **not true** with respect to weak entity set?
Weak Entity cannot exist independently and it has its own primary key.
It must have total participation in the identifying relationship.
Discriminator and Identifying relationship need not exist.
Discriminator is represented by underlining with a dashed line.
A published solution is not available for this question yet.
Question 15 NAT · 4.0 marks
[[IMAGE:41d97408dfb8d756_16_33]]
[[IMAGE:41d97408dfb8d756_17_34]]


A published solution is not available for this question yet.
Question 16 MCQ · 4.0 marks
[[IMAGE:41d97408dfb8d756_16_33]]
[[IMAGE:41d97408dfb8d756_17_35]]


Ram
Frank
Suresh
Thomas
A published solution is not available for this question yet.