chapter

    Functional Dependencies and Normalization Pyqs for Gate Da

    Solve 4+ Functional Dependencies and Normalization previous year questions for GATE DA 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 PYQ
    Level 3: Exam Standard
    Let R(A,B,C,D,E) be a relational schema with functional dependency set .
    Which of the following statements is correct?
    Question 2
    2025 PYQ
    Level 3: Exam Standard
    Question 3
    2025 PYQ
    Level 3: Exam Standard

    If a relational decomposition is not dependency-preserving, which one of the following relational operators will be executed more frequently in order to maintain the dependencies?

    Question 4
    2024 PYQ
    Level 3: Exam Standard
    Given the relational schema and the set of functional
    dependencies:

    Which of the following functional dependencies can be derived from the above
    set?
    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 and Normalization PYQs for GATE DA

    Solve 4+ Functional Dependencies and Normalization previous year questions for GATE DA with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: Functional Dependencies and Normalization

    Chapter Roadmap

    1

    Functional Dependencies and Candidate Keys

    The foundation. Decoding the rules of data determination and systematically extracting minimal keys.

    2

    Normalization, BCNF and Dependency Preservation

    The application. Breaking down messy tables into clean structures to eliminate update anomalies.

    3

    Armstrong Axioms and Derived Dependencies

    The proof. Mastering the formal mathematical rules to verify and derive functional dependencies.

    Functional Dependencies and Candidate Keys

    Functional Dependencies and Candidate Keys

    A database without defined dependencies is just a chaotic bucket of text. These rules capture real-world semantics, ensuring data is logically connected and uniquely identifiable.

    What you will learn here

    • The precise definition and intuition behind Functional Dependencies.
    • How to compute the closure of an attribute set.
    • The systematic, foolproof method to find all Candidate Keys.
    • How to distinguish between Super Keys, Candidate Keys, and Prime Attributes.
    Context: This is the starting point of database design. We must understand the rules before we can normalize the tables.

    Functional Dependencies and Normalization: Solved Questions with Step-by-Step Explanations (4 Problems)

    Question 1 · Database Management and Warehousing · 2026 MCQ
    Let R(A,B,C,D,E) be a relational schema with functional dependency set .
    Which of the following statements is correct?
    1. A.

      AD, ED and CD are the only candidate keys of R.

    2. B.

      AD and ED are the only candidate keys of R.

    3. C.

      A, E and CD are the only candidate keys of R.

    4. D.

      A and CD are the only candidate keys of R.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: appears only on left-hand sides so it must sit in every candidate key, appears only on right-hand sides so it can never sit in one — then only three combinations remain to close.

    Exam route: , and all equal and each is minimal, so the keys are , , — option A.

    Learning route:

    Step 1 — the trigger. Every option ends with "the only candidate keys", so the task is exhaustive enumeration plus a minimality proof, not one convenient closure.

    Step 2 — classify by appearance in .

    : left in , right in — both sides.

    : right only — never in a candidate key. (Whenever is known, comes free from , and every key here eventually reaches , directly or through ; so deleting from a key would leave the closure intact, and a key containing could not be minimal.)

    : left in , right in — both sides.

    : left only — must be in every candidate key.

    : left in , right in — both sides.

    Step 3 — every candidate key is together with a subset of . Test the three single additions.

    : gives ; now fires and adds , giving all of . Check minimality: stops there because needs , and . Both proper subsets fail, so is a candidate key.

    : gives ; gives ; completes . Minimality: , . So is a candidate key.

    : gives ; gives all of . Minimality: — it never acquires — and . So is a candidate key.

    Any two- or three-element addition is a proper superset of one of these three, so none is minimal.

    Step 4 — the candidate keys are exactly , , . Option A.

    Second pass by back-substitution: option B claims only and , but we just computed with both proper subsets failing, so a genuine third key is missing and B is incomplete. Options C and D both include : , missing and , so is not a key at all; option C also includes , whose closure is missing . Only option A survives both checks.

    The tempting wrong path: compute , watch fill in three attributes, glance at and declare a key because "it reached almost everything". That produces option C, and its trimmed twin option D. The break is the single line where the closure is compared with : is absent, and is precisely the attribute nothing in can produce.

    Generalisation: an attribute that never appears on a right-hand side must be physically present in every key — never let a closure "almost" cover the relation.

    Verification: , and each close to all of and each loses that property when either attribute is removed; , , alone and every set containing all fail. Three keys, matching option A exactly.

    Question 2 · Database Management and Warehousing · 2025 MSQ
    1. A.

      A is the only candidate key of R

    2. B.

      A, BC are the candidate keys of R

    3. C.

      A, BC, E are the candidate keys of R

    4. D.

      Relation R is not in Boyce-Codd Normal Form (BCNF)

    Correct Answer:

    ["A","D"]

    Step-by-Step Solution

    Defect: the printed statement is missing the relation and its functional dependencies; the answer below is reconstructed from the standard paper version with , the only reading under which all four options are simultaneously meaningful. Insight: Two independent jobs in one option list — enumerate every candidate key by closure, then test every non-trivial FD's determinant for being a superkey. Exam route: appears only on left-hand sides and , so is the only candidate key. and have determinants whose closures fall short of , so is not in BCNF. Options A and D. Learning route: Step 1 — the trigger. The phrase "the only candidate keys" forces exhaustive enumeration plus a minimality proof; a single closure is not enough. The extra BCNF option forces a second, separate check. Step 2 — classify each attribute by where it appears in . : left in and , never on a right — category L, so it must be in every candidate key. and : right only — they can never belong to a candidate key. and : on both sides — they must be tested. Step 3 — test the mandatory core. : start ; and give ; then adds , and adds . So . is a superkey, and being a single attribute it is automatically minimal, so is a candidate key. Any other candidate key would have to contain (Step 2) and therefore be a proper superset of , hence not minimal. is the only candidate key — option A is true, and options B and C, which contradict it, are false. Step 4 — why specifically fails. : start ; adds ; adds ; no remaining rule has its left side inside , and nothing in produces . So , which misses and is therefore not a superkey. Likewise , since is on the right-hand side of nothing. Step 5 — the BCNF test. Check every non-trivial FD. and : is a superkey, fine. : , so is not a superkey — violation. : — another violation. One failure is enough, so is not in BCNF and option D is true. Second pass by back-substitution: assume option A and test option D against it. If is the only candidate key, the prime attributes are ; the determinant of is neither a superkey nor the whole key, so BCNF fails — D stands with A. Options B and C cannot coexist with A because they assert different key sets, and the closure argument for is airtight, so they must be false. The tempting wrong path: a student notes and , thinks " and together determine and , so must be a key", and marks option B — sometimes padding it into option C. The break is one line: a key must determine every attribute, and nothing in ever produces . Generalisation: piling more determinants into a set never helps if the one attribute that nothing determines is missing from that set. Verification: confirms A is a key and the only one; and both fail to reach ; and confirm the BCNF violation. Final answer: A and D.
    Question 3 · Database Management and Warehousing · 2025 MCQ

    If a relational decomposition is not dependency-preserving, which one of the following relational operators will be executed more frequently in order to maintain the dependencies?

    1. A.

      Selection

    2. B.

      Projection

    3. C.

      Join

    4. D.

      Set union

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: A rule that no single fragment can see must be re-checked by bringing the fragments back together — that repeated recombination is the price of losing dependency preservation. Exam route: Not preserved means some FD has its attributes split across fragments, so it cannot be validated inside one table. The DBMS must reconstruct the original tuples on every risky update, which is the join. Option C. Learning route: Step 1 — what dependency preservation means. After decomposing into , with the dependencies that hold in , the decomposition preserves dependencies when . In plain words: every original business rule can be checked by looking at the small tables individually. Step 2 — what actually breaks when it fails. Some original rule has attributes spread over two or more fragments, so no single fragment contains all of . A constraint checker that scans one table at a time simply cannot see the rule. Step 3 — what the system must then do. To test the rule it has to line up rows of the fragments on their common attributes and evaluate the rule on the combined result. That reconstruction has to happen whenever an update could violate the rule, so it runs repeatedly and is computationally expensive — precisely the cost decomposition was meant to remove. Step 4 — why the other operators cannot do the job. Selection filters rows within one table; it cannot reach attributes living in another table. Projection removes columns, and in fact it is the operator that creates the fragments — it cannot reassemble anything. Set union stacks rows of two relations that must already share a schema, and fragments of a decomposition generally do not. None of the three can bring attributes from different tables into one working relation. Second pass from the trade-off table: a 3NF decomposition is always lossless and always dependency-preserving, whereas a BCNF decomposition is always lossless but may sacrifice preservation. The textbook cost quoted for that sacrifice is exactly this repeated recombination of fragments at update time. Same conclusion: option C. The tempting wrong path: picking Projection, because projection is the operator associated with decomposition in every worked example. Following that thought gives option B, and it breaks at one line — projection produces the fragments, it never re-tests a rule whose attributes sit in two different fragments. Generalisation: "preservation" is a statement about where a rule can be checked; if checking needs attributes from two tables, those tables must first be brought back together. Verification: if the decomposition had been dependency-preserving, every rule would be checkable inside a single fragment and no recombination would ever be needed, so the frequency of the recombining operator would be zero. The question is built entirely on that contrast, and only one operator performs recombination. Answer: C.
    Question 4 · Database Management and Warehousing · 2024 MSQ
    Given the relational schema and the set of functional
    dependencies:

    Which of the following functional dependencies can be derived from the above
    set?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["A","B","D"]

    Step-by-Step Solution

    Insight: "Which FD can be derived?" is a closure question — follows from exactly when .

    Exam route: Close the left side of each option. and . never appears on any right-hand side, so no closure that lacks can ever contain . Options A, B and D follow; C does not.

    Learning route:

    Step 0 — the trigger. The phrase "can be derived from the above set" with no data instance means logical implication. Because Armstrong's axioms are sound and complete, the attribute closure is a decision procedure: it never misses a true rule and never invents a false one. So we close, we do not guess.

    Step 1 — compute . Start with . The rule has its left side inside the set, so add . The rule also applies, so add . Nothing else fires: and need , and needs . Hence . Since , option B is derivable.

    Step 2 — compute . Start with . The rule applies, giving . Now both and fire, giving . No rule produces , so the closure stops there: . It contains and it contains , so option A () and option D () are both derivable.

    Step 3 — option C. The attribute appears only on left-hand sides in . An attribute can enter a closure only as the right side of some rule, so can never be added unless it was in the starting set. does not contain , therefore and is not derivable.

    Second pass by pure axioms (back-substitution): from , augmentation with gives ; transitivity with gives , and with gives ; union of those two gives (option A), and decomposition of it gives (option D). Option B is nothing but the union of the two given rules and . Option C would require running and backwards, and functional dependency has no converse.

    The tempting wrong path: a student sees and , reasons "so and together must pin down ", and marks C as well. The break is at the very first line of that chain — implication is not reversible. Carrying it through produces the answer set A, B, C, D, which collapses the moment you notice that is on the right-hand side of nothing in .

    Generalisation: if an option's right side contains an attribute that never appears on any right-hand side of , and the left side does not already contain it, the option is dead on sight.

    Verification: contains and , so A and D survive; contains and , so B survives; neither closure contains , so C dies. Final answer: A, B, D.

    More previous year questions (pyqs) in this unit