UGC NET Paper 2 (Computer Science)Hard

A file has 100,000 fixed-size records stored 10 per block in sorted order. A binary search on the sorting key needs at most how many block accesses?

  1. A. 17
  2. B. 14
  3. C. 10
  4. D. 100

Correct answer: B. 14

10,000 blocks, so ceil(log2 10000) = 14.

More UGC NET Computer Science and Applications questions

Exams that ask this topic