Functional Dependencies questions

Q30

GATE CS 2026 CS-1Relational DesignMSQ1 mark
Let P,Q,RP, Q, R and SS be the attributes of a relation in a relational schema. Let X⟶YX \longrightarrow Y indicate functional dependency in the context of a relational database, where X,Y⊆{P,Q,R,S}X, Y \subseteq \{P, Q, R, S\}.

Which of the following options is/are always true?
More than one option can be correct.
Show answer without attempting

Answer: C, D

Q65

GATE CS 2026 CS-1Relational DesignNAT2 marks
Consider a relational database schema with a relation R(A,B,C,D)R(A, B, C, D). If {A,B}\{A, B\} and {A,C}\{A, C\} are the only two candidate keys of the relation RR, then the number of superkeys of relation RR is ______. (answer in integer)
Show answer without attempting

Answer: 6

Q42

GATE CS 2026 CS-2Relational DesignMCQ2 marks−2/3 if wrong
In the context of schema normalization in relational DBMS, consider a set F of functional dependencies. The set of all functional dependencies implied by F is called the closure of F. To compute the closure of F, Armstrong’s Axioms can be applied. Consider XX, YY, and ZZ as sets of attributes over a relational schema. The three rules of Armstrong’s Axioms are described as follows.

Reflexivity: If Y⊆XY \subseteq X, then X→YX \rightarrow Y

Augmentation: If X→YX \rightarrow Y, then XZ→YZXZ \rightarrow YZ for any Z

Transitivity: If X→YX \rightarrow Y and Y→ZY \rightarrow Z, then X→ZX \rightarrow Z

The additional rule of Union is defined as follows.

Union: If X→YX \rightarrow Y and X→ZX \rightarrow Z, then X→YZX \rightarrow YZ

It can be proved that the additional rule of Union is also implied by the three rules of Armstrong’s Axioms. Listed below are four combinations of these three rules. Which one of these combinations is both necessary and sufficient for the proof ?
Show answer without attempting

Answer: D

Q47

GATE CS 2025 CS-1Relational DesignMSQ2 marks
Consider a relational schema team(name,city,owner)team(name, city, owner), with functional dependencies {name→city,name→owner}\{name \rightarrow city, name \rightarrow owner\}.
The relation teamteam is decomposed into two relations, t1(name,city)t1(name, city) and t2(name,owner)t2(name, owner). Which of the following statement(s) is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: B, C

Q44

GATE CS 2024 CS-1Relational DesignMSQ2 marks
The symbol →\to indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: B, C, D

Q56

GATE CS 2024 CS-2Relational DesignNAT2 marks
A functional dependency F:X→YF: X \to Y is termed as a useful functional dependency if and only if it satisfies all the following three conditions:
- XX is not the empty set.
- YY is not the empty set.
- Intersection of XX and YY is the empty set.

For a relation RR with 4 attributes, the total number of possible useful functional dependencies is ________
Show answer without attempting

Answer: 50

Q31

GATE CS 2022 CSRelational DesignNAT1 mark
Consider a relation R(A,B,C,D,E)R(A, B, C, D, E) with the following three functional dependencies.

AB→CAB \to C; BC→DBC \to D; C→EC \to E;

The number of superkeys in the relation R is _____________.
Show answer without attempting

Answer: 8

Q40

GATE CS 2021 CS-2Relational DesignMSQ2 marks
Suppose the following functional dependencies hold on a relation U with attributes P,Q,R,SP, Q, R, S, and TT:

<br>P→QR<br>RS→T<br>\begin{aligned}<br>P & \to QR \\<br>RS & \to T<br>\end{aligned}

Which of the following functional dependencies can be inferred from the above functional dependencies?
More than one option can be correct.
Show answer without attempting

Answer: A, C, D

Q32

GATE CS 2019 CSRelational DesignMCQ2 marks−2/3 if wrong
Let the set of functional dependencies F={QR→S,R→P,S→Q}F = \{QR \to S, R \to P, S \to Q\} hold on a relation schema X=(PQRS)X = (PQRS). XX is not in BCNF. Suppose XX is decomposed into two schemas YY and ZZ, where Y=(PR)Y = (PR) and Z=(QRS)Z = (QRS).

Consider the two statements given below.
I. \quad Both YY and ZZ are in BCNF
II. \quad Decomposition of XX into YY and ZZ is dependency preserving and lossless

Which of the above statements is/are correct?
Show answer without attempting

Answer: C

Q16

GATE CS 2017 CS-1Relational DesignMCQ1 mark−1/3 if wrong
The following functional dependencies hold true for the relational schema R{V,W,X,Y,Z}R\{V, W, X, Y, Z\}:

V→WV \to W
VW→XVW \to X
Y→VXY \to VX
Y→ZY \to Z

Which of the following is irreducible equivalent for this set of functional dependencies?
Show answer without attempting

Answer: A

Q13

GATE CS 2015 CS-3Relational DesignMCQ1 mark−1/3 if wrong
Consider the relation X(P,Q,R,S,T,U)X(P, Q, R, S, T, U) with the following set of functional dependencies

F={{P,R}→{S,T},{P,S,U}→{Q,R}}F = \{\{P, R\} \to \{S, T\}, \{P, S, U\} \to \{Q, R\}\}

Which of the following is the trivial functional dependency in F+F^+, where F+F^+ is closure of FF ?
Show answer without attempting

Answer: C

Q21

GATE CS 2014 CS-1Relational DesignMCQ1 mark−1/3 if wrong
Consider the relation scheme R=(E,F,G,H,I,J,K,L,M,N)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}}\{\{E, F\} \to \{G\}, \{F\} \to \{I, J\}, \{E, H\} \to \{K, L\}, \{K\} \to \{M\}, \{L\} \to \{N\}\} on RR. What is the key for RR?
Show answer without attempting

Answer: B

0/130 correct0 marks

Related topics in Relational Design