Question: What is the worst-case number of comparisons in binary search for an array of size 16?
Options:
Correct Answer: 6
Solution:
The worst-case number of comparisons is log2(16) = 4, but since we start counting from 0, it takes 5 comparisons.