Consider the following B+ tree with 5 nodes, in which a node can store at most 3 key values. The value 23 is now inserted in the B+ tree. Which of the following options(s) is/are CORRECT?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2025 Set 1 · Q21
Time

Select all that applyOne or more correct
Solution
Official answer: B) At least one node will split and redistribute.; D) The height of the tree will increase.
File Organization and IndexingMaximum Capacity per Node: Each node can hold at most keys (order of tree ).
Current State:
The root contains keys: (fully occupied).
The rightmost leaf node contains keys: (fully occupied).
Insertion of :
The key must be inserted into the rightmost leaf node .
Inserting causes an overflow in this leaf node ( keys: ).
The leaf node splits into two leaf nodes, and the median key is pushed up to the parent (root).
Since the root node is already full (), receiving another key causes the root node to overflow and split.
Splitting the root creates a new root node at a new level above, thereby increasing the height of the tree.
Conclusion:
Option (B) is correct: Nodes split during insertion.
Option (D) is correct: The root node splits, increasing the tree height.
Options (A) and (C) are incorrect because nodes split and new nodes are created.
Try the question first, then check your work.
Examiner trap
Check the capacity of the target leaf node and trace the propagation of node splits up to the root.
This File Organization and Indexing previous year question is Q21 of the GATE CSE 2025 Set 1 paper. Find more GATE CSE PYQs on File Organization and Indexing in Databases, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related File Organization and Indexing PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
File Organization and Indexing has 17 GATE CSE PYQs across 17 papers from 2011 to 2026. 2 of them are 1-mark MSQs like this one, and it is the only one in GATE CSE 2025 Set 1.
How GATE tests File Organization and IndexingIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.