GATE CS 2025 Set 2 | Question 57

Databases › File Organization & Indexing · NAT · 2 marks · Answer: 33

  1. Question 57Databasesnat2 marks
    In a B+ tree where each node holds at most four keys, a root-to-leaf path is: A = (49, 77, 83, -), B = (7, 19, 33, 44), C = (20*, 22*, 25*, 26*). A pointer between keys and points to a subtree with keys in ; when a leaf is created, its smallest key is copied up. A record with key 23 is inserted. The smallest key value in the parent of the leaf that contains 25* is __________. (Answer in integer)

    Answer: 33

    Solution

    Answer: 33 Inserting 23 into the full leaf makes — overflow. Split into and , copying up (smallest of the right leaf) to parent . becomes — overflow. A 5-key internal node splits with the middle key pushed up to , leaving left part and right part . The leaf containing is , whose parent is the right internal node . Its smallest key value is .

More GATE PYQ on File Organization & Indexing

All GATE CS Databases PYQ →

Attempt GATE CS 2025 Set 2 in real GATE exam mode

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

Create free account →