Database Management System Weekly Test 02 Test Paper
Database Management System Weekly Test 02 Test Paper
DS & AI Hinglish
WEEKLY TEST – 02
Subject : DBMS
Topic : Minimal Cover, Properties of
Decomposition & Normal Form Maximum Marks 20
[MCQ]
[MCQ]
6. Consider the given set of FD set on relation R(p q r s t
3. Find the minimal cover for the FD set
u v x)
F ={X → Y, XY → Z, W → XZ, W → U}
on a relation R (X, Y, Z, W, U) {p →qr, r → uv, u → pxs, s → t}
(a) {X → Y, W → X, W → U} The given relation R satisfies which normal form
(b) {X → Z, W → X, W→U} (Highest normal form).
(c) {X → Y, X → Z, W → X, W → U} (a) 1NF (b) 2NF
(d) {X → W, W → X, W → U} (c) 3NF (d) BCNF
[MCQ] (a) 10
7. Consider a relational schema R (P Q S T U V X Y Z (b) 20
W) Then what will be the maximum number of (c) 252
candidate keys possible for the above relational (d) Not possible to find candidate keys.
schema R?
2
[NAT] [MCQ]
8. Find the number of candidate keys for the given 11. Find the canonical cover for the FD set:
relation R (A B C D E F G) with FD set: {Y → X, XW → YZ, Z → XYW}
{AB → C, D → AB, C → DF, F → EG} On relation R(X, Y, Z, W)
(a) {Y → X, XW → Z, Z → YW}
[MCQ] (b) {Y → X, XW → Y, Z → YW}
9. Given a relational schema R(A, B, C, D, E) will set of (c) {Y → X, XW → Y, Z → XY}
functional dependencies P and Q as:
(d) {Y → X, XW → Z, Z → YX}
P:{A → B, AB → C, D → AC, D → E}
Q: {A → BC, D → AE}
[MSQ]
Then choose the correct options from the following.
(a) Q is a subset of P 12. Choose the correct statement regarding normal forms
(b) P is a subset of Q from the following.
(a) If there exists only two attributes in a relation then
(c) P Q
it is in BCNF.
(d) P Q (b) If all the attributes are prime in a relation then the
relation is in 3NF but may not be in BCNF.
[MSQ] (c) There exists 0 redundancy in 3NF always.
10. Choose the incorrect statements from the following: (d) None of the above.
(a) There can be atmost one primary key for any
relation. [NAT]
(b) There can be exactly one primary key for any 13. The number of statement that is/are correct?
relation I: There exist 0% redundancy in third normal form
(c) There can exists 0 or more minimal cover for a (3NF).
given FD set for any relation. II: There exist 0% redundancy in Boyce codd normal
(d) There exists only one minimal cover for a given form (BCNF).
FD set for any relation. III: There should not exist any partial dependency in
second normal form (2NF).
3
Answer Key
1. (b, d) 8. (3)
2. (c, d) 9. (c)
3. (c) 10. (b, d)
4. (b, d) 11. (a)
5. (d) 12. (a, b)
6. (b) 13. (2)
7. (c)
4
1. (b, d) 4. (b, d)
Given FD set :{pq →r, s → t}The candidate key for The candidate key for relation R
relation R is pqs. xy+ = {x, y, z, w, v}
pqs+ = {p q r s t} xz+ = {x, z, w, y, v}
As there exists partial dependency, the relation R is xw+ = {x, w, y, v, z}
not in 2NF and in turn not in 3 NF. xv+ = {x, v}
5. (d)
{A → CD, B → AC, D → EF, E →FB}
Candidate keys for relation R are:
3. (c)
A+ = {A, C, D, E, F, B}
1. X → Y B+ = {B, A, C, D, E, F}
2. XY → Z C+ = {C}
3. W → XZ D+ = {D, E, F, B, A, C}
4. W → U E+ = {E, F, B, A, C, D}
As Y is implied by X, therfore Y is an entraneous F+ = {F}
attribute in XY → Z, so updated FD X → Z. CF+ = {C, F}
1. X → Y Candidate keys are: {A, B, D, E}
2. X → Z
A → CD B → AC D → EF E → FB
3. W → X
2NF ✓ ✓ ✓ ✓
4. W → Z
3NF ✓ ✓ ✓ ✓
5. W → U BCNF ✓ ✓ ✓ ✓
In 4, W → Z, is a redundant FD
So, Finally: X → Y 6. (b)
X→Z Given FD set:
W→X {p →qr r → uv u → pxs s → t}
W→U Candidate keys:
X → Y, W → X p+ = {p, q, r, u, v, x, s, t}
Minimal cover =
X → Z, W → U r+ = {r, u, v, p, x, s, t, q}
5
For more questions, kindly visit the library section: Link for web: https://smart.link/sdfez8ejd80if