CS FundamentalsHardTCS Digital · Infosys

In a B+ tree, an internal node can hold up to p child pointers and p - 1 keys. The block size is 1024 bytes, a key takes 8 bytes and a pointer takes 4 bytes. What is the largest p that fits in one block?

  1. A. 86
  2. B. 85
  3. C. 128
  4. D. 127

Correct answer: A. 86

4p + 8(p - 1) <= 1024 gives 12p <= 1032, so p = 86.

More DBMS and SQL questions

Exams that ask this topic