GateAI
File Organization and Indexing

GATE CSE 2025 Set 1 · Q21

MSQ1 markMedium

Time

Consider the following B+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+B^+ tree. Which of the following options(s) is/are CORRECT?

GATE CSE 2025 Set 1 Q21 diagram

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: B) At least one node will split and redistribute.; D) The height of the tree will increase.

File Organization and Indexing
  1. Maximum Capacity per Node: Each node can hold at most 33 keys (order of tree p=4p = 4).

  2. Current State:

    • The root contains 33 keys: [6,12,19][6, 12, 19] (fully occupied).

    • The rightmost leaf node contains 33 keys: [20,21,22][20, 21, 22] (fully occupied).

  3. Insertion of 2323:

    • The key 2323 must be inserted into the rightmost leaf node [20,21,22][20, 21, 22].

    • Inserting 2323 causes an overflow in this leaf node (44 keys: [20,21,22,23][20, 21, 22, 23]).

    • 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 ([6,12,19][6, 12, 19]), 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.

  4. 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.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

File Organization and Indexing in GATE CSE

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 Indexing

More from GATE CSE 2025 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2025 Set 1 · Q21 · MSQ

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

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.