Question: What is the maximum number of comparisons needed to find an element in an array of size 1024 using binary search?
Options:
Correct Answer: 11
Solution:
The maximum number of comparisons is log2(1024) = 10, but since we start counting from 0, it takes 11 comparisons in the worst case.