CS FundamentalsHardGATE CS · Amazon/Microsoft placement

R(A, B, C, D, E, F) has functional dependencies B → C, AF → E, AC → E, CE → A. How many prime attributes does R have?

  1. A. 4
  2. B. 3
  3. C. 6
  4. D. 5

Correct answer: D. 5

The candidate keys are {ABDF, BDEF}, so the prime attributes (those in at least one candidate key) are ABDEF, giving 5. Counting only one key's attributes undercounts.

More DBMS and SQL questions

Exams that ask this topic