CS FundamentalsVery hardProduct-company MCQ pattern
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?
- A. 4 keys; 3NF but not BCNF
- B. 4 keys; BCNF
- C. 2 keys; BCNF
- D. 3 keys; 2NF
Correct answer: A. 4 keys; 3NF but not BCNF
Keys: AB, AD (D → B), BC (C → A) and CD. Every attribute is prime, so 3NF holds automatically. C → A and D → B have determinants that are not superkeys, so BCNF fails.
More DBMS and SQL questions
- 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?
- Classify the schedule W1(A), W2(A), C1, C2 (C = commit; T2 does not read A).
- How many of the following statements are correct? 1. Strict 2PL holds all exclusive locks until commit or abort and so avoids cascading…