CS FundamentalsHardAmazon · Microsoft MCQ pattern

R(A, B, C) has NO nontrivial functional dependencies at all (every attribute is independent of every other). What is R's only candidate key, and how many superkeys does it have?

  1. A. Candidate key A; 4 superkeys
  2. B. No candidate key can exist without any functional dependencies
  3. C. Candidate key ABC; 1 superkey (ABC itself)
  4. D. Candidate key ABC; 7 superkeys (every non-empty subset)

Correct answer: C. Candidate key ABC; 1 superkey (ABC itself)

With no FDs at all, no proper subset of {A,B,C} can determine the rest (nothing determines anything beyond itself), so the ONLY set whose closure covers all attributes is the full set ABC itself. ABC is therefore both the sole candidate key and the sole superkey — 1 superkey in total, since no smaller subset qualifies and there is nothing larger than the full attribute set.

More DBMS and SQL questions

Exams that ask this topic