GATE DA 2026 | Question 41

Database Management and Warehousing › Indexing · MCQ · 2 marks · Answer: A

  1. Question 41Database Management and Warehousingmcq2 marks
    Consider a B+ Tree where the maximum number of key values in each leaf node is 2 and the maximum number of pointers in each non-leaf node is 3. Let the content of the B+ Tree be as shown in the figure. Which of the following options denotes the key value(s) stored in the root node after inserting a key value 3 in the given B+ Tree?
    GATE DA 2026 Question 41 figure
    • A.
      5
      ✓
    • B.
      8
    • C.
      3 and 5
    • D.
      3, 5 and 8

    Answer: A

    Solution

    The root holds keys 5 and 8 with three children: leaves , and . 1. Key 3 belongs in the first leaf, which becomes . That overflows (maximum 2 keys), so it splits into and , and the separator 3 is copied up to the parent. 2. The parent would now hold keys with 4 child pointers, but non-leaf nodes allow at most 3 pointers. It splits: the middle key 5 moves up to a new root, the left internal node keeps 3, and the right internal node keeps 8. The new root contains only the key 5. Answer: (A) 5.

More GATE PYQ on Indexing

All GATE DA Database Management and Warehousing PYQ →

Attempt GATE DA 2026 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →