ISRO 2017 · SQL Queries

MCQ · 1 mark · Problem DBMS-SQL-0072

A B-Tree used as an index for a large database table has four levels including the root node. If a new key is inserted in this index, then the maximum number of nodes that could be newly created in the process are
  1. A
    5
  2. B
    4
  3. C
    3
  4. D
    2

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionIn the worst case the leaf receiving the key is full and splits, pushing a key into a full parent, and so on up to the root.\[\boxed{\text{new nodes}=\text{one per split level}+\text{new root}}\]Each of the 4 levels splits, creating 4 new nodes, and splitting the root creates one more node as the new root:\[4+1=5.\]Answer: A

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com