CS FundamentalsHardProduct-company MCQ pattern
R(A, B, C, D, E) has FDs A → B, B → C, C → A, D → E. How many candidate keys does R have, and what is its highest normal form?
- A. 3 keys; 1NF
- B. 4 keys; 2NF
- C. 1 key (AD); 2NF
- D. 3 keys; 3NF
Correct answer: A. 3 keys; 1NF
A, B and C determine each other in a cycle and D determines E, so the keys are AD, BD and CD. D → E is a partial dependency (D is part of every key and E is non-prime), so R is not even in 2NF.
More DBMS and SQL questions
- R(A, B, C, D, E, F) has FDs AB → C, C → D, D → B, E → F. Which statement is correct?
- R(A, B, C, D) has FDs AB → CD, C → A, D → B. How many candidate keys does R have, and what is its highest normal form?
- R(A, B, C, D) has FDs AB → CD, C → A, D → B, giving candidate keys AB, AD, BC and CD. How many superkeys does R have?
- R(A, B, C) with AB → C and C → B is decomposed into R1(A, C) and R2(B, C) to reach BCNF. Which statement is correct?
- Schedule: R2(A), R1(B), W2(A), R3(A), W1(B), W3(A), R2(B), W2(B). Which statement is correct?
- Schedule: R1(A), W2(A), W1(A), W3(A). Which statement is correct?