logo

AQA A-Level Computer Science practice

A relation Enrolment(StudentID, StudentName, CourseID, CourseName, Grade) has a composite primary key of StudentID and CourseID. Which decomposition best supports third normal form?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Database design and normalisation techniques

Exam-style question

Try this first

A relation Enrolment(StudentID, StudentName, CourseID, CourseName, Grade) has a composite primary key of StudentID and CourseID. Which decomposition best supports third normal form?.

  1. A.Student(StudentID, StudentName), Course(CourseID, CourseName), Enrolment(StudentID, CourseID, Grade)
  2. B.Student(StudentID, StudentName, CourseID), Course(CourseID, CourseName, Grade)
  3. C.Enrolment(StudentID, StudentName, CourseID, CourseName, Grade) with no changes
  4. D.Student(StudentName), Course(CourseName), Enrolment(StudentID, CourseID, Grade)

Answer and explanation

Concise answer

Student(StudentID, StudentName), Course(CourseID, CourseName), Enrolment(StudentID, CourseID, Grade)

Why this is correct

StudentName depends on StudentID, CourseName depends on CourseID, and Grade depends on the whole composite key. Separating these dependencies removes partial dependencies and supports 3NF.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions