CS FundamentalsHardGATE CS (PYQ pattern)

R(A, B, C, D, E, F) has the functional dependencies B → C, FE → D, EF → B, E → A, CF → E. How many attributes of R are prime (belong to at least one candidate key)?

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

Correct answer: B. 4

The candidate keys are ['BF', 'CF', 'EF']; their union is BCEF, so 4 attributes are prime.

More DBMS and SQL questions

Exams that ask this topic