CS FundamentalsHardGATE CS · Product placement

A B+ tree index uses 4096-byte blocks, 20-byte search keys, 12-byte block (tree) pointers and 14-byte record pointers. What is the maximum number of CHILD pointers an internal node can hold?

  1. A. 128
  2. B. 129
  3. C. 120
  4. D. 127

Correct answer: A. 128

An internal node with p children holds p block pointers and p − 1 keys: 12·p + 20·(p − 1) ≤ 4096 gives p = ⌊(4096 + 20)/(20 + 12)⌋ = 128.

More DBMS and SQL questions

Exams that ask this topic