CS FundamentalsHardGATE CS · Product placement

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

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

Correct answer: C. 5

The candidate keys are {ADE, BDE, CDE}, 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