CS FundamentalsVery hardProduct-company MCQ pattern
R(A, B, C, D, E) has functional dependencies AB → C, C → D, D → E, E → B, giving candidate key(s) AB, AC, AD, AE. How many superkeys does R have in total?
- A. 15
- B. 14
- C. 16
- D. 31
Correct answer: A. 15
Every subset of attributes whose closure covers all of R is a superkey. Enumerating all 31 non-empty subsets and testing each one's closure gives exactly 15 superkeys in total (the candidate keys plus every superset of them).
More DBMS and SQL questions
- R(A, B, C) is in 1NF with functional dependencies AB → C, C → B (candidate key(s): AB, AC). What is the highest normal form R satisfies?
- R(A, B, C) is in 1NF with functional dependencies A → B, B → C, C → A (candidate key(s): A, B, C). What is the highest normal form R…
- R(SID, CID, SNAME, GRADE) is in 1NF with functional dependencies SID,CID → GRADE, SID → SNAME (candidate key(s): SID,CID). What is the…
- R(A, B, C, D) is in 1NF with functional dependencies A → B, B → C, A → D (candidate key(s): A). What is the highest normal form R satisfies?
- R(A, B, C, D) is in 1NF with functional dependencies AB → C, C → D (candidate key(s): AB). What is the highest normal form R satisfies?
- R(A, B, C) is in 1NF with functional dependencies A → BC (candidate key(s): A). What is the highest normal form R satisfies?