CS FundamentalsVery hardProduct-company MCQ pattern
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?
- A. 8
- B. 9
- C. 11
- D. 15
Correct answer: B. 9
Two-attribute superkeys are exactly the 4 keys (AC and BD are not). Every 3-attribute set contains one of them (4 sets), plus ABCD: 4 + 4 + 1 = 9. No single attribute is a superkey.
More DBMS and SQL questions
- 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…
- Deadlock prevention with timestamps: T1 (timestamp 5) is older than T2 (timestamp 10). T2 holds a lock on X and T1 requests it…