0
0
DBMS Theoryknowledge~20 mins

Boyce-Codd Normal Form (BCNF) in DBMS Theory - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
BCNF Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding BCNF Definition

Which of the following best describes the condition for a relation to be in Boyce-Codd Normal Form (BCNF)?

AEvery non-prime attribute is fully functionally dependent on the primary key.
BEvery attribute is functionally dependent on the primary key only.
CThere are no transitive dependencies in the relation.
DEvery determinant is a candidate key.
Attempts:
2 left
💡 Hint

Recall that BCNF is a stricter form of 3NF focusing on determinants.

📋 Factual
intermediate
2:00remaining
BCNF vs 3NF Differences

Which statement correctly distinguishes BCNF from Third Normal Form (3NF)?

A3NF allows dependencies where the determinant is not a candidate key if the dependent is a prime attribute, but BCNF does not.
BBCNF allows some dependencies where the determinant is not a candidate key, but 3NF does not.
C3NF requires every determinant to be a candidate key, but BCNF allows exceptions.
DBCNF and 3NF have the exact same requirements for functional dependencies.
Attempts:
2 left
💡 Hint

Think about the exceptions allowed in 3NF but not in BCNF.

🚀 Application
advanced
2:00remaining
Identifying BCNF Violations

Given a relation R(A, B, C) with functional dependencies: A → B and B → C, which of the following is true about R?

AR is in BCNF because A is a candidate key.
BR is in BCNF because all dependencies have candidate keys as determinants.
CR is not in BCNF because B → C violates BCNF as B is not a candidate key.
DR is not in BCNF because A → B violates BCNF.
Attempts:
2 left
💡 Hint

Check which attributes are candidate keys and which dependencies violate BCNF.

🔍 Analysis
advanced
2:00remaining
Decomposition to BCNF

You have a relation R(X, Y, Z) with dependencies X → Y and Y → X. Which of the following decompositions will result in relations in BCNF?

ADecompose into R1(X, Y) and R2(Y, Z).
BDecompose into R1(X, Z) and R2(Y, Z).
CNo decomposition needed; R is already in BCNF.
DDecompose into R1(X, Y, Z) only.
Attempts:
2 left
💡 Hint

Consider which attributes form candidate keys and how dependencies affect BCNF.

Reasoning
expert
3:00remaining
BCNF and Candidate Keys Count

Consider a relation R with attributes {A, B, C, D} and functional dependencies: A → B, B → C, and C → A. How many candidate keys does R have if it is in BCNF?

AOne candidate key only.
BThree candidate keys.
CTwo candidate keys.
DFour candidate keys.
Attempts:
2 left
💡 Hint

Analyze the cycle of dependencies and what attributes determine all others.