GATE Questions-DBMS-Functional Dependencyas 1
GATE Questions-DBMS-Functional Dependencyas 1
BtechOnline.Org
GATE Questions-DBMS-
Functional Dependency
Labels: GATE , GATE questions on DBMS
CS/IT
GATE-1999
1. Let R= (A, B, C, D, E, F) be a relation scheme with the following dependencies: C->F, E->A, EC->D,
Explanation:
Find the closure set of all the options given. If any closure covers all the attributes of the relation
Step1: Equate an attribute or attributes to X for which closure needs to be identi ed.
Step2: Take each FD (functional dependency) one by one and check whether the left side of FD is
available in X, if yes then add the right side attributes to X if it is not available.
Step4: After no more attributes can be added to X declare it as the closure set.
X = CD
= CDF {C->F}
No more attributes can be added to X. Hence closure set of CD = CDF
X = EC
= ECF {C->F}
= ECFA {E->A}
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 1/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
= ECFAD {EC->D}
= ECFADB {A->B}
GATE-2000
-------
X Y Z
-------
1 4 2
1 5 3
1 6 3
3 2 2
-------
Explanation:
Association among attributes is known as Functional Dependencies (FD). A FD X->Y require that
the value of X uniquely determines the value of Y where X and Y are set of attributes.
For example,
Issue_Date of a book.
In option (a), its given Z->Y, it means that the value of Z uniquely determines the value of Y. But
here the value 2 of Z, gives two di erent values of Y i.e. 4 and 2. Therefore this FD is not satis ed
by the instance.
In option (c), its given X->Z, it means that the value of X uniquely determines the value of Z. But
here the value 1 of X, gives two di erent values of Z i.e. 2 and 3. Therefore this FD is not satis ed
by the instance.
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 2/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
n option (d), its given Y->X, here the value of Y uniquely determines the value of X. Therefore this
FD is satis ed by the instance. Now take FD XZ->Y, here (1,3) cannot uniquely determine the value
of Y. (1,3) gives two values for Y i.e. 5 and 6. Therefore this FD (XZ->Y) is not satis ed by the
instance.
GATE-2002
3. From the following instance of a relational schema R(A, B, C), we can conclude that:
----------
A B C
----------
1 1 1
1 1 0
2 3 2
2 3 2
----------
Explanation:
Looking into an instance we can't conclude that A functionally determines B. A->B could hold true
to the given instance but not on the entire database. But we can be sure that B does not
functionally determine C because for the value 1 of B, it gives two di erent values of C i.e. 1 & 0.
Issue in option (d) - Again from the provided instance we cannot say that A does not determine B.
A->B may or may not hold. Therefore only possible option is (c).
GATE-2005
4. Consider a relation scheme R = (A, B, C, D, E, H) on which the following functional dependencies
hold: {A–>B, BC–>D, E–>C, D–>A}. What are the candidate keys of R?
(a) AE, BE
(b) AE, BE, DE
(c) AEH, BEH, BCH
(d) AEH, BEH, DEH
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 3/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
Explanation:
If you focus on the right side of the functional dependencies you can see that E & H cannot be
derived using the left side of functional dependencies. Hence E & H will de nitely be part of the
candidate key. Therefore only option (d) satis es such condition.
If any closure includes all attributes of a table then it becomes the candidate key. Find closure (As
explained in question 1) of AEH as below.
Closure of AEH = AEHB {A->B}
= AEHBC {E->C}
= AEHBCD {BC->D}
GATE-2005(IT)
5. In a schema with attributes A, B, C, D and E, following set of functional dependencies are given:
A->B
A->C
CD->E
B->D
E->A
Which of the following functional dependencies is NOT implied by the above set?
For every options given, nd the closure set of left side of each FD. If the closure set of left side
contains the right side of the FD, then the particular FD is implied by the given set.
Option (a): Closure set of CD = CDEAB. Therefore CD->AC can be derived from the given set of
FDs.
Option (c): Closure set of BC = BCDEA. Therefore BC->CD can be derived from the given set of
FDs.
Option (d): Closure set of AC = ACBDE. Therefore AC->BC can be derived from the given set of
FDs.
Option (b): Closure set of BD = BD. Therefore BD->CD cannot be derived from the given set of
FDs.
GATE-2006
Ans: option(c)
Explanation:
AF+ = {AFDE}
GATE-2013
Linked question ( 7 & 8 )
Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values.
F={CH->G, A->BC, B->CFH, E->A, F->EG} is a set of functional dependencies (FDs) so that
Explanation:
In a relational database, a key helps to uniquely identify each record within a table . A key is a
combination of one or more elds/attributes in a table. If a relational schema has multiple
keys,each key is a candidate key. One of the candidate keys is chosen as the primary key.
To nd the candidate keys, we need to nd the closure of each attribute. (If x ia an attribute( eld),
set of attributes determined by x under a set F of functional dependencies is the closure of x
under F, denoted x+ ).
Thus,
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 5/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
A+:ABCFHGE
B+: BCFHEGA
C+:C
D+:D
E+: EABCFHG
F+:FEGABCH
G+:G
H+ : H
A+,B+,E+,F+ contains all attributes except D. Thus there are 4 candidate keys DA,DB,DE and DF.
8. The relation R is
(a) in 1NF, but not in 2NF.
(b) in 2NF, but not in 3NF.
Consider F->G; G is a non-prime attribute and F is a proper subset of a candidate key (refer the
above question). This is a case of partial dependency. Hence 2NF condition is violated. similarly
A->C and B->CFH also violates 2NF condition, hence R is not in 2NF.
GATE - 2015
9. Consider the relation X(P, Q, R, S, T, U) with the following set of functional dependencies
F={
{P, R} → {S, T}
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 6/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
{P, S, U} → {Q, R}
}
Which of the following is the trivial functional dependency in F+ is closure of F?
(a) {P, R} → {S, T}
(b) {P, R} → {R, T}
(c) {P, S} → {S}
GATE - 2014
10. Consider the relation scheme R=(E,F,G,H,I,J,K,L,M,N) and the set of functional dependencies
{{E,F}→{G},{F}→{I,J},{E,H}→{K,L},{K}→{M},{L}→{N}}
on R. What is the key for R?
(a) {E,F}
(b) {E,F,H}
(c) {E,F,H,K,L}
(d) {E}
25 comments:
Hi,
For Q.No :3 - How option b got eliminated ?
For A It gives value 1 and 3 for the values 1 and 2 respectively . So It also
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 7/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
Reply
Replies
Reply
hi,
For the 6th question I think AB closure will have only {ABCDG }.Please correct me
if am wrong
Reply
Replies
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 8/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
so , AF+ = adef ??
Reply
Reply
Replies
Reply
Reply
very helpful
Reply
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 9/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
helpful material
thanku
Reply
Reply
for question 3 c) shud be answer, we cant tell what is determining what until we
know entire schema, we can only tell negative,, this is a negative test
Reply
Excellent explanations
Reply
Reply
Reply
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 10/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
Reply
Reply
Reply
Reply
Could anyone more explain Ques no. 8. I didn't get why option (a) is right.
Reply
Replies
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 11/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
Reply
Reply
Replies
Reply
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 12/15
3/5/2020 GATE Questions-DBMS-Functional Dependency
Helpful
Reply
Publish Preview
POPULAR POSTS
LABELS
GATE (25) PHP (23) C Programming (14) Computer Networks (11) GATE questions on
Computer Networks (5) GATE questions on DBMS (5) CakePHP (4) TOC (4) GATE questions on Operating
Systems (3) GATE-Data Structures (3) TOC-Finite Automata (3) Digital Electronics (2) MySQL (2) Ajax (1) Algorithm (1)
Android (1) Formulas (1) GATE questions on Digital Logic (1) Gate questions on C programming (1) Gate questions on WEB
Technologies (1) ISRO (1) Kotlin (1) Maths (1) Pointers (1) Software Engineering (1) TOC-Regular Expressions (1) Time Complexity (1)
Web Development (1) hybrid mobile app development (1) ionic (1)
A FLYING START
TO YOUR CAREER
GET A GLOBAL
ACCOUNTANCY QUALIFICATION.
START NOW
FOLLOW BY EMAIL
CATEGORIES
C Programming (14) CakePHP (4) Computer Networks (11) Digital Electronics (2) GATE (25)
GATE questions on Computer Networks (5) PHP (23) TOC (4)
Privacy
Custom Search
If you would like to contribute some articles on computer science related subjects or programming, mail
them to [email protected]. See your article appearing on Btechonline.org and help others to
gain knowledge. You can also contribute practice questions (with answers and explanations) on GATE. NB:-
Content copied from other websites,blogs or books will not be accepted. If you cannot avoid them in your
explanation please provide the reference.
www.btechonline.org/2015/12/gate-questions-dbms-functional.html 15/15