logo

AQA A-Level Computer Science practice

A relation has a composite key made from StudentID and CourseID. Which dependency would be appropriate for an attribute representing a student's grade for that course?

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 has a composite key made from StudentID and CourseID. Which dependency would be appropriate for an attribute representing a student's grade for that course?.

  1. A.Grade depends on StudentID only.
  2. B.Grade depends on CourseID only.
  3. C.Grade depends on both StudentID and CourseID.
  4. D.Grade depends on neither StudentID nor CourseID.

Answer and explanation

Concise answer

Grade depends on both StudentID and CourseID.

Why this is correct

A grade is associated with a particular student taking a particular course, so it depends on the whole composite key. Dependence on only part of the key would be a partial dependency.

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