CS FundamentalsHardProduct-company MCQ pattern

A B+ tree indexes 1,000,000 keys. Every leaf holds 100 keys and every internal node has 100 children, and all nodes are completely full. How many node (block) accesses are needed to fetch one record, counting the data block?

  1. A. 5
  2. B. 3
  3. C. 4
  4. D. 6

Correct answer: C. 4

Leaves: 1,000,000/100 = 10,000. Next level: 10,000/100 = 100 nodes, then 1 root. Tree height = 3 levels (root, internal, leaf), plus 1 data block = 4. Taking log₁₀₀(10⁶) = 3 and forgetting the data block gives 3.

More DBMS and SQL questions

Exams that ask this topic