CS FundamentalsHardGATE CS · Product placement

In a B+ tree every internal node can have at most 34 children and every leaf can hold at most 30 keys. With exactly 4 levels (root at level 1, leaves at level 4), what is the maximum number of keys the tree can index?

  1. A. 1,078,110
  2. B. 1,336,336
  3. C. 1,139,816
  4. D. 1,179,120

Correct answer: D. 1,179,120

Fully packed: 3 internal levels give 34^3 = 39,304 leaves, each with 30 keys, so 1,179,120 keys.

More DBMS and SQL questions

Exams that ask this topic