Normalization process in RDBMS, multiple choice questions with answers in RDBMS, normal forms and functional dependencies MCQs.
Database Management Systems Quiz  Normalization Process in DBMS
Assume a relation
R(A, B, C, D) with set of functional dependencies
F = { C → D, C → A, B → C}. Use this setup to answer the following questions;
1. Which of the following is the candidate keys of R?
a) C
b) BC
c) B
d) Both (b) and (c)
View Answer
Answer:
(c) B
Only left hand side
(LHS) attributes of the given set of FDs are C and B. B determines C uniquely. Hence,
we can find the closure of B to check whether it forms the candidate key or not
as follows;
B^{+} =
BCDA through FDs B → C, C → D, and C → A.
And,
B^{+} = R. So, B is the only candidate key for R. 
2. Which is the normal form that the relation R is currently complies with?
a) First Normal
Form (1NF)
b) Second Normal
Form (2NF)
c) Third Normal
Form (3NF)
d) All of the above
View Answer
Answer:
(b) Second Normal Form (2NF)
C
→ D, and C → A are nontrivial FDs. C is not a super key and D is not part of
any candidate key. Hence, R is not in 3NF.
No
partial key dependencies present in R since B is the only key (and is not
composite key). Hence, R is currently in 2NF.

3. R is not in BCNF. Which of the following shows the correct decomposition of R into BCNF relations?
a) R_{1}(CDA),
R_{2}(BC)
b) R_{1}(BD),
R_{2}(CA)
c) R_{1}(BC),
R_{2}(CA), R_{3}(CD)
d) None of the
above
View Answer
Answer:
(c) R_{1}(BC), R_{2}(CA), R_{3}(CD)
BCNF
relation – “The LHS of a functional dependency should be a key for the relation
if the relation is in BCNF”.
The
FDs C → D and C → A violates the properties of BCNF because C is not a
candidate key for R. (B → C does not violate because B is the candidate key
for R).
Let
us decompose R using one of the violating FD C → D. To decompose, let us
create separate relation for violating FD. We will get R_{1}(A, B, C)
and R_{2}(C, D).
Is
the decomposition in BCNF? R_{2} is in BCNF due to the FD C → D
whereas R_{1} is not due to the FD C → A.
So,
let us further decompose R_{1} by creating a relation for violating
FD. We will get R_{11}(B, C) and R_{12}(C, A). Both are in
BCNF.
Hence,
BCNF decomposition of R is R_{1}(B,
C), R_{2}(C, A) and R_{3}(C, D).

4. Which among the following is the canonical cover (minimal cover F_{c}) of the relation R?
a) F_{c} =
{C → DA, B → C}
b) F_{c} =
{BC → A, BC → D}
c) F_{c} =
{C → A, B → C, D → A}
d) All of the above
View Answer
Answer:
(a) F_{c} = {C → DA, B → C}
A
canonical cover (minimal cover) of a set of FDs F is a minimal set of
functional dependencies F_{min} that is equivalent to F. To
understand the process of finding minimal cover, please refer here.
For
the relation R and set of FDs F, the set of functional dependencies {C → DA, B
→ C} is the minimal set.

5. R can be
decomposed into set of 3NF relations R_{1}(C, D, A) and R_{2}(B,
C). This decomposition is a _____.
a) Lossless join
decomposition
b) Lossy join
decomposition
c) Dependency preserving
decomposition
d) Both lossless
and dependency preserving decomposition
View Answer
Answer:
(d) Both lossless and dependency preserving decomposition
Decomposition
is lossless if either (R_{1} ∩ R_{2}) → R_{1} or (R_{1}
∩ R_{2}) → R_{2} holds. According to the question, (R_{1}
∩ R_{2}) → R_{1} is TRUE [How? (CDA) ∩ (BC) → (CDA) ⇒ C → CDA]. Hence, the
decomposition is lossless.
Decomposition
is dependency preserving if (F_{1} U F_{2} U … F_{n})^{+}
= F^{+}. that is, if the closure of union of individual relations
functional dependencies is equal to the closure of FDs of original relation.
This is also true here. Hence, the decomposition is a dependency preserving decomposition.

*************************
Related posts:
 Go to Multiple Choice Questions in DBMS home
 Go to Normalization  MCQs page
 Go to General Mixed Quiz in all topics of DBMS page
Go to Advanced DBMS Concepts page
No comments:
Post a comment