logo

Question detail

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, check the answer, then read the explanation to understand the curriculum point.

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.

Model answer

What a good answer should say

  • Grade depends on both StudentID and CourseID.

Explanation

Why this works

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.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.