CS FundamentalsHardGATE CS · Product placement

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

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

Correct answer: D. 5

The candidate keys are {ABC, ABD, ABE}, so the prime attributes (those in at least one candidate key) are ABCDE, giving 5. Counting only one key's attributes undercounts.

More DBMS and SQL questions

Exams that ask this topic