DBMS · Question 28 · Hard

Relation R(A, B, C, D, E) has exactly two candidate keys, A and B. How many superkeys does R have?

  1. 16
  2. 32
  3. 31
  4. 24
Answer and explanation

Answer: D. 24

Explanation: Superkeys containing A: 2^4 = 16. Superkeys containing B: 16. Those containing both A and B (2^3 = 8) are counted twice, so the total is 16 + 16 - 8 = 24.

Previous: Relation R(A, B, C, D) has the functional dependencies A → B, B → C and C → A… · Next: Consider the schedule S: w1(X), r2(X), w2(Y), c2, c1, where ri, wi and ci are…

Practise dbms

Try a fresh set of dbms questions with an explanation after every answer, free and without signing up: DBMS practice. Or sit a full placement mock test.

More dbms questions

More technical & programming practice

SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge