chapter

    Functional Dependencies, Keys and Normalization Pyqs for Gate Cs

    Solve 13+ Functional Dependencies, Keys and Normalization previous year questions for GATE CS with answers and detailed solutions. Free sample questions below

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    2026 Slot Set2 PYQ
    Level 3: Exam Standard
    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 , , and as sets of attributes over a relational schema. The three rules of Armstrong’s Axioms are described as follows.

    Reflexivity: If , then
    Augmentation: If , then for any Z
    Transitivity: If and , then

    The additional rule of Union is defined as follows.

    Union: If and , then

    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 ?
    Question 2
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    Consider a relational database schema with a relation . If and are the only two candidate keys of the relation , then the number of superkeys of relation is ______. (answer in integer)

    Question 3
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Let , , and be the attributes of a relation in a relational schema. Let indicate functional dependency in the context of a relational database, where .

    Which of the following options is/are always true?
    Question 4
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    In the context of relational database normalization, which of the following statements is/are true?

    Question 5
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    Consider the following relational schema along with all the functional dependencies that hold on them.





    Which of the following statement(s) is/are TRUE?
    Question 6
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a relational schema , with functional dependencies .

    The relation is decomposed into two relations, and . Which of the following statement(s) is/are TRUE?
    Question 7
    2024 Slot Set2 PYQ
    Level 3: Exam Standard
    A functional dependency is termed as a useful functional dependency if and only if it satisfies all the following three conditions:

    • is not the empty set.
    • is not the empty set.
    • Intersection of and is the empty set.

    For a relation with 4 attributes, the total number of possible useful functional dependencies is __________
    Question 8
    2024 Slot Set1 PYQ
    Level 3: Exam Standard

    The symbol indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?

    Question 9
    2024 Slot Set1 PYQ
    Level 3: Exam Standard

    Which of the following statements about a relation in first normal form (1NF) is/are TRUE ?

    Question 10
    2022 PYQ
    Level 3: Exam Standard

    Consider a relation with the following three functional dependencies.

    The number of superkeys in the relation is ____________.

    Free preview ends here

    Login to view the complete previous-year questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Functional Dependencies, Keys and Normalization PYQs for GATE CS

    Solve 13+ Functional Dependencies, Keys and Normalization previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: Functional Dependencies, Keys and Normalization

    Databases › Functional Dependencies, Keys and Normalization

    Chapter Journey

    Three topics that form the backbone of relational database theory.

    1
    Functional Dependency Inference and Armstrong's Axioms
    The logical rules for deriving new dependencies from a given set. You are here.
    5 PYQs
    2
    Candidate Keys, Closures and Superkeys
    Using attribute closures to find all candidate keys and count superkeys.
    2 PYQs
    3
    Normal Forms, Lossless Decomposition and Dependency Preservation
    1NF through BCNF, checking whether a decomposition loses data or dependencies.
    6 PYQs

    What Is a Functional Dependency?

    What Is a Functional Dependency?

    A **Functional Dependency (FD)** is a constraint between two sets of attributes in a relation.

    Definition
    holds on a relation if, for every valid instance of , any two tuples that agree on all attributes of also agree on all attributes of .
    In plain English: If you know the value of , you can uniquely determine the value of .
    Determinant ()
    The attribute(s) you already know
    Dependent ()
    The attribute(s) you can deduce
    Key point: An FD is a statement about all possible valid instances of the relation, not just the rows you currently see in a table.

    Functional Dependencies, Keys and Normalization: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Databases · 2026_Set2 MCQ
    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 , , and as sets of attributes over a relational schema. The three rules of Armstrong’s Axioms are described as follows.

    Reflexivity: If , then
    Augmentation: If , then for any Z
    Transitivity: If and , then

    The additional rule of Union is defined as follows.

    Union: If and , then

    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 ?
    1. A.

      Reflexivity, Augmentation, and Transitivity

    2. B.

      Reflexivity and Augmentation

    3. C.

      Transitivity

    4. D.

      Augmentation and Transitivity

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: The Union rule is proved by expanding both sides (Augmentation) and then chaining the results (Transitivity). Reflexivity is never invoked.

    Exam route:

    1. Given . Augment with : , i.e., .
    2. Given . Augment with : , i.e., .
    3. From and , by Transitivity: .

    Only Augmentation and Transitivity were used. Reflexivity was not needed.

    Learning route:

    We must show that using the minimum subset of Armstrong's axioms.

    • Augmentation lets us add the same attributes to both sides: .
    • Transitivity lets us chain: and .
    • Reflexivity only generates trivial FDs () and cannot create new non-trivial dependencies.

    Since the proof above uses only steps 1 and 2, the combination "Augmentation and Transitivity" is both necessary (neither alone suffices) and sufficient.

    Wrong path: A student might think Reflexivity is always needed because it is one of the three core axioms. But Reflexivity only produces trivial FDs; it cannot help derive a non-trivial result like from and .

    Verification: Plug . Given and . Step 1 gives . Step 2 gives . Step 3 gives . Correct.

    Question 2 · Databases · 2026_Set1 NAT

    Consider a relational database schema with a relation . If and are the only two candidate keys of the relation , then the number of superkeys of relation is ______. (answer in integer)

    Correct Answer:

    6.00

    Step-by-Step Solution

    Insight: When a relation has multiple candidate keys, use inclusion-exclusion to count superkeys without double-counting the overlap.

    Exam route:

    1. attributes: .
    2. (size ). Superkeys containing : .
    3. (size ). Superkeys containing : .
    4. Intersection: Superkeys containing both and must contain (size 3). Count: .
    5. Total superkeys = .

    Learning route:

    A superkey is any superset of a candidate key. When there are multiple candidate keys, their superkey sets overlap. The overlap consists of all superkeys that contain the union of the candidate keys.

    The 6 superkeys are: .

    Wrong path: A student might add and forget to subtract the intersection. This gives 8, which double-counts and .

    Verification: List all subsets and check which contain or . Exactly 6 do. Correct.

    Question 3 · Databases · 2026_Set1 MSQ
    Let , , and be the attributes of a relation in a relational schema. Let indicate functional dependency in the context of a relational database, where .

    Which of the following options is/are always true?
    1. A.

      If ( and ), then

    2. B.

      If , then ( or )

    3. C.

      If ( and ), then

    4. D.

      If , then

    Correct Answer:

    ["C","D"]

    Step-by-Step Solution

    Insight: For "always true" FD implication questions, prove the true ones formally and find concrete counterexamples for the false ones.

    Exam route:

    • Option A: and ? Counterexample: Let =RollNo, =Name, =Grade. (RollNo determines Grade). (trivially true). But (Name determines Grade) is false. So A is FALSE.
    • Option B: or ? Counterexample: =FirstName, =LastName, =PersonID. (full name determines ID). But neither nor alone holds. So B is FALSE.
    • Option C: and ? Proof: (1) , augment with : . (2) , augment with : . (3) Transitivity on (1) and (2): . So C is TRUE.
    • Option D: ? Proof: (1) , augment with : . (2) by Reflexivity (). (3) Transitivity: . So D is TRUE.

    Learning route:

    The key properties used are:

    • Augmentation: (add to both sides).
    • Decomposition: (extract subset from right).

    Option C uses Union (a derived rule): combining two FDs with the same left side.

    Option D uses the fact that adding attributes to the left side of a determinant preserves the dependency.

    Wrong path: Students often think that if , then either or alone must determine (Option B). This is the "left-side decomposition" fallacy — FDs do not decompose on the left side.

    Verification: For C, let . Given and . Then . Check: (augment with ), (augment with ), (transitivity). Correct.

    Question 4 · Databases · 2026_Set1 MSQ

    In the context of relational database normalization, which of the following statements is/are true?

    1. A.

      It is always possible to obtain a dependency-preserving 3NF decomposition of a relation

    2. B.

      It is always possible to obtain a dependency-preserving 1NF decomposition of a relation

    3. C.

      It is not always possible to obtain a dependency-preserving BCNF decomposition of a relation

    4. D.

      It is not always possible to obtain a dependency-preserving 2NF decomposition of a relation

    Correct Answer:

    ["A","B","C"]

    Step-by-Step Solution

    Insight: This is a theoretical normalization question testing the guarantees of decomposition algorithms for 1NF, 2NF, 3NF, and BCNF.

    Exam route: Recall the standard theorems: 3NF synthesis always guarantees lossless + dependency-preserving. BCNF synthesis guarantees lossless but may lose dependencies. Since 3NF 2NF 1NF, any 3NF decomposition is also a valid 2NF and 1NF decomposition.

    Learning route:

    Step 1: Option (A) "always possible to obtain a dependency-preserving 3NF decomposition". This is a fundamental theorem of database design. The 3NF synthesis algorithm always produces a lossless, dependency-preserving decomposition. TRUE.

    Step 2: Option (B) "always possible to obtain a dependency-preserving 1NF decomposition". Since every relation in the relational model is inherently in 1NF, the trivial decomposition is a 1NF decomposition that preserves all dependencies. Furthermore, any 3NF decomposition is also in 1NF. TRUE.

    Step 3: Option (C) "not always possible to obtain a dependency-preserving BCNF decomposition". This is the well-known BCNF trade-off. While a lossless BCNF decomposition always exists, it may not preserve all functional dependencies (e.g., with ). TRUE.

    Step 4: Option (D) "not always possible to obtain a dependency-preserving 2NF decomposition". Since a dependency-preserving 3NF decomposition is always possible (Option A), and every 3NF relation is also in 2NF, a dependency-preserving 2NF decomposition is always possible. Thus, the statement "not always possible" is FALSE.

    Verification: The hierarchy of normal forms ensures that if we can achieve a property at a higher normal form (like 3NF), we automatically achieve it at all lower normal forms (2NF, 1NF).

    Question 5 · Databases · 2025_Set2 MSQ
    Consider the following relational schema along with all the functional dependencies that hold on them.





    Which of the following statement(s) is/are TRUE?
    1. A.

      is in 3NF

    2. B.

      is in 3NF

    3. C.

      is NOT in 3NF

    4. D.

      is NOT in 3NF

    Correct Answer:

    ["C","D"]

    Step-by-Step Solution

    Insight: This is a 3NF verification question. For each relation, find the candidate keys, identify prime vs non-prime attributes, and check if any FD violates the 3NF condition (determinant is not a superkey AND dependent is non-prime).

    Exam route: Compute closures to find keys, then test each FD against the 3NF definition.

    Learning route:

    Step 1: Analyze R1(A,B,C,D,E) with FDs: , , .

    • Find keys: is only on LHS. . We need to get (via ), then (via ). So is a candidate key.
    • Prime attributes: D, A. Non-prime: E, B, C.
    • Check 3NF: FD . Determinant is not a superkey. Dependent is non-prime. This violates 3NF!
    • Conclusion: R1 is NOT in 3NF. (Option C is TRUE, A is FALSE).

    Step 2: Analyze R2(A,B,C,D) with FDs: , , .

    • Find keys: . So is a candidate key.
    • Prime attributes: C. Non-prime: A, B, D.
    • Check 3NF: FD . Determinant is not a superkey. Dependent is non-prime. This violates 3NF!
    • Conclusion: R2 is NOT in 3NF. (Option D is TRUE, B is FALSE).

    Verification: Both relations contain FDs where a non-superkey determines a non-prime attribute, which is the exact definition of a 3NF violation.

    Question 6 · Databases · 2025_Set1 MSQ
    Consider a relational schema , with functional dependencies .

    The relation is decomposed into two relations, and . Which of the following statement(s) is/are TRUE?
    1. A.

      The relation is NOT in BCNF.

    2. B.

      The relations and are in BCNF.

    3. C.

      The decomposition constitutes a lossless join.

    4. D.

      The relation is NOT in 3NF.

    Correct Answer:

    ["B","C"]

    Step-by-Step Solution

    Insight: The relation is already in BCNF because the only candidate key (name) determines all other attributes. The decomposition is lossless because the intersection (name) is a superkey of both sub-relations.

    Exam route: Find candidate keys, check BCNF for the original and decomposed relations, and verify the lossless join condition.

    Learning route:

    Step 1: Find candidate keys of team(name, city, owner). name+ = {name, city, owner}. So name is the only candidate key.

    Step 2: Check BCNF for team. FDs: name -> city, name -> owner. In both FDs, the determinant (name) is a superkey. Thus, team IS in BCNF. Option (A) is FALSE.

    Step 3: Check BCNF for t1(name, city) and t2(name, owner). In t1, name is the key and determines city. In t2, name is the key and determines owner. Both are in BCNF. Option (B) is TRUE.

    Step 4: Check lossless join. t1 intersect t2 = {name}. Is {name} a superkey of t1 or t2? Yes, it is the key for both. Thus, the decomposition is lossless. Option (C) is TRUE.

    Step 5: Check 3NF for team. Since team is in BCNF, it is automatically in 3NF. Option (D) is FALSE.

    Verification: The candidate key analysis and BCNF checks confirm that the original relation is in BCNF, the decomposition is into BCNF relations, and the join is lossless.

    Question 7 · Databases · 2024_Set2 NAT
    A functional dependency is termed as a useful functional dependency if and only if it satisfies all the following three conditions:

    • is not the empty set.
    • is not the empty set.
    • Intersection of and is the empty set.

    For a relation with 4 attributes, the total number of possible useful functional dependencies is __________
    Correct Answer:

    50.00

    Step-by-Step Solution

    Insight: A "useful FD" requires X and Y to be disjoint non-empty subsets. This is equivalent to counting the number of ways to assign n attributes to X, Y, or neither, excluding empty sets.

    Exam route: Use the combinatorial formula 3^n - 2^(n+1) + 1 for n attributes.

    Learning route:

    Step 1: Understand the conditions for a "useful FD" X -> Y: X != empty, Y != empty, X intersect Y = empty.

    Step 2: For a relation with 4 attributes, we need to count pairs (X, Y) of disjoint, non-empty subsets.

    Step 3: Each of the 4 attributes can be in X, in Y, or in neither. Total assignments = 3^4 = 81.

    Step 4: Subtract cases where X is empty. If X is empty, each attribute can be in Y or neither (2^4 = 16 ways).

    Step 5: Subtract cases where Y is empty. If Y is empty, each attribute can be in X or neither (2^4 = 16 ways).

    Step 6: Add back the case where both X and Y are empty (1 way), since it was subtracted twice.

    Step 7: Total useful FDs = 81 - 16 - 16 + 1 = 50.

    Verification: Both the formula and manual enumeration by |X| (47 + 63 + 41 + 10 = 28 + 18 + 4 = 50) yield 50.

    Question 8 · Databases · 2024_Set1 MSQ

    The symbol indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?

    1. A.

      implies

    2. B.

      implies

    3. C.

      implies

    4. D.

      implies

    Correct Answer:

    ["B","C","D"]

    Step-by-Step Solution

    Insight: This is an FD inference question testing the core Armstrong's axioms and derived rules. You must check if the conclusion logically follows from the premises using valid decomposition, transitivity, and pseudotransitivity.

    Exam route: Evaluate each option against the formal rules of FD inference. Reject any option that attempts to decompose the left-hand side (determinant).

    Learning route:

    Step 1: Option (A) claims implies . This attempts to decompose the left side. FDs cannot be decomposed on the left. If and together determine , alone might not. FALSE.

    Step 2: Option (B) claims implies . This is the Decomposition rule (a derived rule from Armstrong's axioms). The right side can be split. TRUE.

    Step 3: Option (C) claims and implies . By Augmentation, . By Transitivity with , we get . This is Pseudotransitivity. TRUE.

    Step 4: Option (D) claims and implies . This is the exact definition of the Transitivity axiom. TRUE.

    Verification: Options B, C, and D are standard derived/core rules. Option A violates the fundamental property that determinants cannot be reduced.

    Question 9 · Databases · 2024_Set1 MSQ

    Which of the following statements about a relation in first normal form (1NF) is/are TRUE ?

    1. A.

      can have a multi-attribute key

    2. B.

      cannot have a foreign key

    3. C.

      cannot have a composite attribute

    4. D.

      cannot have more than one candidate key

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Insight: 1NF only restricts the atomicity of attribute values; it places no constraints on keys, foreign keys, or the number of candidate keys.

    Exam route: Evaluate each option against the single rule of 1NF: all attribute domains must be atomic.

    Learning route:

    Step 1: Recall the definition of 1NF. A relation is in 1NF if every attribute contains only atomic (indivisible) values.

    Step 2: Option (A) states R can have a multi-attribute key. A composite key like {A, B} is allowed because the key itself is a set of attributes, but each individual attribute value remains atomic. TRUE.

    Step 3: Option (B) states R cannot have a foreign key. 1NF governs domain atomicity, not referential integrity. Foreign keys are perfectly valid in 1NF. FALSE.

    Step 4: Option (C) states R cannot have a composite attribute. A composite attribute (e.g., Address = {Street, City}) can be divided into sub-parts, violating atomicity. Thus, 1NF forbids composite attributes. TRUE.

    Step 5: Option (D) states R cannot have more than one candidate key. 1NF does not restrict the number of candidate keys. A relation can have multiple candidate keys (e.g., RollNo and Email). FALSE.

    Verification: The only constraints 1NF imposes are on attribute atomicity. Options (A) and (C) directly relate to this; (B) and (D) introduce restrictions that do not exist in 1NF.

    Question 10 · Databases · 2022 NAT

    Consider a relation with the following three functional dependencies.

    The number of superkeys in the relation is ____________.

    Correct Answer:

    8.00

    Step-by-Step Solution

    Insight: This is a superkey counting question. The fastest route is to find the single candidate key using the L-R-LR-N heuristic, then apply the formula .

    Exam route: Classify attributes, find the mandatory core, verify it's the only key, and compute .

    Learning route:

    Step 1: Identify the attributes and FDs. , FDs: , , .

    Step 2: Classify attributes using the L-R-LR-N heuristic.

    • L (Left only): A, B
    • R (Right only): D, E
    • LR (Both): C
    • N (Neither): None

    Step 3: The mandatory core for any candidate key is .

    Step 4: Compute the closure of the mandatory core: .

    • Start:
    • Apply :
    • Apply :
    • Apply :

    Since , is a candidate key.

    Step 5: Since the mandatory core already determines all attributes, there are no other candidate keys. (Any other key would have to contain , making it a superkey, not a minimal candidate key).

    Step 6: Count the superkeys. There is exactly 1 candidate key of size in a relation of size .

    Formula: Total Superkeys = .

    Verification: The 8 superkeys are all supersets of : , , , , , , , . The count is exactly 8.

    More previous year questions (pyqs) in this unit