Maximum comparisons needed by binary search on 1000 sorted elements:
Show answerHide answer
Correct answer: (B) 10
Explanation
⌈log2(1001)⌉ = 10.
Correct answer: (B) 10
Explanation
⌈log2(1001)⌉ = 10.
This is question 147 of DSSSB TGT Computer Science Full Mock Test 4. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.