CS FundamentalsHardGATE CS · DBMS

A B-tree (not B+ tree) stores a record pointer with every key in every node. With 1024-byte blocks, 9-byte keys, 6-byte tree pointers and 7-byte record pointers, what is the maximum number of child pointers (the order p) of a node?

  1. A. 48
  2. B. 68
  3. C. 47
  4. D. 46

Correct answer: C. 47

A B-tree node with p children has p tree pointers and p − 1 (key, record-pointer) pairs: 6·p + 16·(p − 1) ≤ 1024, so p = ⌊1040/22⌋ = 47. Ignoring the record pointers gives the B+ internal order instead.

More DBMS and SQL questions

Exams that ask this topic