CS FundamentalsHardGATE CS · Amazon/Microsoft placement
R(A, B, C, D) has functional dependencies B → C, A → BD, AC → D, C → AB. What is the highest normal form R satisfies?
- A. 2NF but not 3NF
- B. 1NF but not 2NF
- C. BCNF
- D. 3NF but not BCNF
Correct answer: C. BCNF
Candidate keys: {A, B, C}. The left side of every non-trivial dependency in F+ is a superkey, so R is in BCNF.
More DBMS and SQL questions
- R(A, B, C, D, E, F) has functional dependencies CD → F, EF → D, F → D, AB → E. Which of the following is the complete set of candidate…
- Table P(x) rows: (1), (2), (2), (3), (NULL). Table Q(x) rows: (2), (3), (3), (NULL), (4). What does this query return? sql SELECT COUNT()…
- On R(A, B, C, D, E), F = {AE → D, A → CD, B → A} and G = {B → ACD, A → CD}. Which statement is correct? ("F covers G" means every FD of G…
- R(A, B, C, D, E, F) has functional dependencies BF → A, D → E, AC → F, BD → A, A → B. Which of these attribute sets is NOT a superkey of R?
- R(A, B, C, D, E) has functional dependencies A → BCE, C → AD, B → DE. What is the closure {B}⁺?
- R(A, B) = {(a1, b1), (a1, b2), (a2, b2), (a2, b3), (a3, b1), (a3, b2), (a4, b1), (a4, b2), (a4, b3)} and S(B) = {b1, b3}. What is R ÷ S?