🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: ER to Tables: all 15 questions

Quiz: ER to Tables · Question 10 of 15

What does the primary key (rollno, coursecode) on the enrollment table prevent?

What does the primary key (roll_no, course_code) on the enrollment table prevent?

  1. A.A student taking more than one course
  2. B.A course having more than one student
  3. C.Grades being NULL
  4. D.The same student being enrolled in the same course twice
Answer & explanation

Correct answer: The same student being enrolled in the same course twice

The pair must be unique, but each value on its own may repeat.

Can you get the rest right without peeking?

Take the timed Quiz: ER to Tables quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →