0
0
DBMS Theoryknowledge~20 mins

Closure of attributes in DBMS Theory - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Attribute Closure Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Attribute Closure
Given a set of attributes S = {A, B} and functional dependencies F = {A → C, B → D}, what is the closure of S (S+)?
A{A, B, C, D}
B{A, B, C}
C{A, B, D}
D{A, B}
Attempts:
2 left
💡 Hint
Remember that closure includes all attributes you can reach using the functional dependencies starting from the given set.
📋 Factual
intermediate
2:00remaining
Properties of Attribute Closure
Which of the following statements about attribute closure is always true?
AThe closure of an attribute set is always equal to the entire set of attributes in the relation.
BThe closure of an attribute set never contains attributes outside the relation.
CThe closure of an attribute set always contains the original set.
DThe closure of an attribute set can be empty.
Attempts:
2 left
💡 Hint
Think about what closure means in terms of starting attributes.
🔍 Analysis
advanced
2:00remaining
Calculating Closure with Multiple Dependencies
Given relation R(A, B, C, D, E) and functional dependencies:

1. A → B
2. B → C
3. C → D
4. D → E

What is the closure of {A}?
A{A, B, C}
B{A, B, C, D, E}
C{A, B, C, D}
D{A, B}
Attempts:
2 left
💡 Hint
Apply the dependencies step-by-step starting from A.
Comparison
advanced
2:00remaining
Comparing Closures of Different Attribute Sets
Given relation R(A, B, C) with functional dependencies:
1. A → B
2. B → C

Which attribute set has the larger closure?
AClosures of {A} and {B} are equal
BClosure of {B} is larger than closure of {A}
CClosures of {A} and {B} contain only their own attributes
DClosure of {A} is larger than closure of {B}
Attempts:
2 left
💡 Hint
Calculate both closures step-by-step.
Reasoning
expert
2:00remaining
Determining Candidate Keys Using Closure
Relation R(A, B, C, D) has functional dependencies:
1. A → B
2. B → C
3. C → A

Which of the following attribute sets is a candidate key for R?
A{A, D}
B{D}
C{C, D}
D{B, D}
Attempts:
2 left
💡 Hint
Check which sets' closure includes all attributes of R.