Quiz Space

Database Management Systems · Quiz 1 · 13 Jul 2025 · May 2025 term

Question 5: Consider the relational schemas Student, Course and Enrol…

Question 5

+4 marksOne correct option

Consider the relational schemas Student, Course and Enrollment:

Student(SId, Name, Age, DOB, Phone_Number)
Course(CId, CName, Credits)
Enrollment(EId, SId, CId, Term)

Now consider the following SQL query:

sql
SELECT S.Name
FROM Student S
WHERE NOT EXISTS (
SELECT *
FROM Course C
WHERE NOT EXISTS (
SELECT *
FROM Enrollment E
WHERE E.SId = S.SId
AND E.CId = C.CId
)
)

The query returns:

  1. A

    Names of students who have enrolled in at least one course

  2. B

    Names of students who have enrolled in exactly one course

  3. C

    Names of students who have enrolled in all available courses

  4. D

    Names of students who have not enrolled in any course

Show answer

Correct answer

  • C

    Names of students who have enrolled in all available courses

Question 5 of 14 in the IIT Madras BS Database Management Systems (DBMS) Quiz 1 paper sat on 13 Jul 2025, in the May 2025 term (IIT M DIPLOMA AN EXAM QDD2 13 July 2025). It carries 4 marks.

More questions from this paper

  1. Q1Consider the following table Sales: | EmpID | Region | Amount | |---|---|---| | 101 | East | 5000 | | 102 | East | 3000…
  2. Q2Consider the following SQL statements executed in sequence on a table students: What will be the content of the student…
  3. Q3Consider the following relations:\ auto_part(<u>pid</u>, pname, color)\ auto_suppliers(<u>sid</u>, sname, location)\ ca…
  4. Q4Consider the relational schema Employees: Employees(<u>EmpId</u>, Name, Salary, Department, Experience) Now consider th…
  5. Q6Consider the relational schemas Student, Professor, Course, Enrolled and Teaches: Student(<u>StudentId</u>, Name, Age) …
  6. Q7Your task is to create a table Employee (EmpID, Name, Email, PAN, Department) The following rules must be enforced: Eve…
  7. Q8Consider the relation Product shown in Table 1: | pid | pname | price | |---|---|---| | P1 | Sunscreen cream | 70 | | P…
  8. Q9Figure question
  9. Q10Consider the following relations: Book(<u>bookid</u>, title, genre) Author(<u>authorid</u>, name) Writes(<u>bookid, aut…
  10. Q11Which of the following is the main role of the query parser in query processing?
  11. Q12Figure question
  12. Q13Figure question
  13. Q14Consider the tables Department, Employee and Project given below: | DeptID | DeptName | |---|---| | 1 | HR | | 2 | IT |…