chapter

    Database Management and Warehousing Practice Questions for Gate Da

    GATE DA Database Management and Warehousing: 2 units and 6 chapters, weightage from 22 previous year questions across 3 papers, a study order by exam weight a

    A question from this chapter

    Question 1
    Level 1: Warm-up

    Let contain tuples and contain . Using the standard division formula , what is the number of tuples in the result?

    Question 2
    Level 1: Warm-up

    Consider a parent table P and a child table C with a foreign key referencing P. Which of the following statements correctly describes an operation that will NEVER violate the referential integrity constraint?

    Question 3
    Level 1: Warm-up

    Consider the attribute closure algorithm for computing given a set of functional dependencies . Which of the following statements about the algorithm is TRUE?

    Question 4
    Level 1: Warm-up

    A B+ tree non-leaf node has a block size of bytes. The tree pointer size is bytes, and the search key size is bytes. What is the maximum number of tree pointers this node can hold?

    Question 5
    Level 1: Warm-up

    A fact table has dimension D1 with 2 distinct values and D2 with 3 distinct values. Only one combination of (D1, D2) exists in the base table. How many tuples are in the result of GROUP BY CUBE(D1, D2)?

    Question 6
    Level 1: Warm-up

    A multidimensional data model requires both facts and dimensions to form a valid data cube. Which of the following configurations represents the minimum valid structure for a single data cube cell, contradicting the notion that a cube must strictly be 3-dimensional?

    Free preview ends here

    Login to view the complete practice 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.

    Database Management and Warehousing Practice Questions for GATE DA

    GATE DA Database Management and Warehousing: 2 units and 6 chapters, weightage from 22 previous year questions across 3 papers, a study order by exam weight and 1975 practice questions.

    About Database Management and Warehousing Practice Questions

    1975 practice questions for Database Management and Warehousing in GATE DA, sorted chapter by chapter and graded from basic to exam level, each with a full solution.

    GATE DA Database Management and Warehousing Unit-wise Weightage from Past Papers

    We counted every GATE DA Database Management and Warehousing previous year question in our bank (22 questions from 3 papers) and grouped them by unit.

    UnitChaptersPYQsShare of sectionAvg per paper
    Database Systems41986%6.3
    Data Warehousing2314%1

    Suggested Database Management and Warehousing Study Order for GATE DA

    1. Database Systems: 86% of past Database Management and Warehousing questions, about 6.3 per paper.
    2. Data Warehousing: 14% of past Database Management and Warehousing questions, about 1 per paper.

    Start where the marks are. Units at the top of this list have appeared most often in past GATE DA papers.

    Units in GATE DA Database Management and Warehousing

    All Database Management and Warehousing chapters

    One Solved Question from Each Database Management and Warehousing Chapter

    Question 1 · Relational Algebra and SQL Queries MCQ

    Let contain tuples and contain . Using the standard division formula , what is the number of tuples in the result?

    1. A.

      1

    2. B.

      2

    3. C.

      3

    4. D.

      0

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a direct formula application question for the division operation. The formula computes tuples in that match all tuples in .

    Step 1: Identify . The values in are .

    Step 2: Compute . This pairs every value with every value in : .

    Step 3: Subtract from this product. contains and , but not . The difference is .

    Step 4: Project the difference onto . .

    Step 5: Subtract this from . .

    The number of tuples in the result is 2.

    Question 2 · ER Model, Keys and Integrity Constraints MCQ

    Consider a parent table P and a child table C with a foreign key referencing P. Which of the following statements correctly describes an operation that will NEVER violate the referential integrity constraint?

    1. A.

      Deleting a tuple from P that is referenced by C.

    2. B.

      Inserting a tuple into C with a foreign key value not present in P.

    3. C.

      Inserting a tuple into P with a primary key value not referenced by C.

    4. D.

      Updating the primary key of a tuple in P that is referenced by C.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Referential integrity restricts the child table on insert/update and the parent table on delete/update. It does not restrict inserting into the parent.

    Step 1: Analyze the operations based on the violation checklist.

    Step 2: Deleting from P (referenced) -> Violates (orphans child).

    Step 3: Inserting into C (invalid FK) -> Violates (points to non-existent parent).

    Step 4: Inserting into P -> Safe. Adding a new parent does not break any existing child links.

    Step 5: Updating PK in P (referenced) -> Violates (orphans child).

    Answer: Inserting a tuple into P with a primary key value not referenced by C.

    Question 3 · Functional Dependencies and Normalization MCQ

    Consider the attribute closure algorithm for computing given a set of functional dependencies . Which of the following statements about the algorithm is TRUE?

    1. A.

      The algorithm terminates when all attributes of the relation are in the result set.

    2. B.

      In each pass, the algorithm adds the right side of an FD if the left side is a subset of the current result set.

    3. C.

      The algorithm guarantees that the closure will contain all attributes of the relation.

    4. D.

      The algorithm requires checking each FD exactly once.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The closure algorithm iteratively applies FDs where the left side is contained in the current result set.

    The correct algorithm:

    1. Initialize result =
    2. Repeat until result stops changing:
    • For every FD in :
    • If result, add to result
    1. Final result is

    Option B correctly describes step 2: the algorithm adds the right side of an FD if the left side is a subset of the current result set.

    Answer: B

    Question 4 · Indexing and B+ Trees MCQ

    A B+ tree non-leaf node has a block size of bytes. The tree pointer size is bytes, and the search key size is bytes. What is the maximum number of tree pointers this node can hold?

    1. A.

      7

    2. B.

      6

    3. C.

      8

    4. D.

      9

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a direct formula application for calculating non-leaf node fanout.

    Step 1: Recall the inequality for non-leaf nodes: .

    Step 2: Substitute the given values: .

    Step 3: Simplify the inequality: .

    Step 4: Solve for : .

    Step 5: Since must be an integer, the maximum value is .

    Answer: 7

    Question 5 · OLAP Operations and Data Cube Aggregation MCQ

    A fact table has dimension D1 with 2 distinct values and D2 with 3 distinct values. Only one combination of (D1, D2) exists in the base table. How many tuples are in the result of GROUP BY CUBE(D1, D2)?

    1. A.

      4

    2. B.

      6

    3. C.

      10

    4. D.

      12

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a contradiction question—the dimensions have multiple values, but the base table is sparse (only 1 combination exists). We must count tuples per grouping set based on actual data presence.

    Step 1: Identify the base table. Only 1 (D1, D2) combination exists, so the base table has 1 tuple.

    Step 2: Count tuples per grouping set:

    • (D1, D2): 1 tuple (the single base combination)
    • (D1): 1 tuple (subtotal for the D1 value present)
    • (D2): 1 tuple (subtotal for the D2 value present)
    • (): 1 tuple (grand total)

    Step 3: Total tuples = .

    Answer: 4

    Question 6 · Concept Hierarchies and Multidimensional Data Models MCQ

    A multidimensional data model requires both facts and dimensions to form a valid data cube. Which of the following configurations represents the minimum valid structure for a single data cube cell, contradicting the notion that a cube must strictly be 3-dimensional?

    1. A.

      1 fact and 0 dimensions

    2. B.

      1 fact and 1 dimension

    3. C.

      3 facts and 1 dimension

    4. D.

      1 fact and 3 dimensions

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: A valid data cube cell requires at least one measure (fact) and at least one contextual attribute (dimension) to be meaningful.

    Exam route: Minimum facts = 1. Minimum dimensions = 1. Total minimum structure = 1 fact and 1 dimension.

    Learning route:

    1. Define the core components: Facts are quantitative measures; dimensions are contextual attributes.
    2. Establish the minimum requirement: A cell must hold a measure (1 fact) and be contextualized by at least one attribute (1 dimension) to exist in a model.
    3. Evaluate options: "1 fact and 1 dimension" is the smallest valid combination. "1 fact and 0 dimensions" is just a raw number, not a cube cell.

    Answer: 1 fact and 1 dimension