Question: What is the maximum number of iterations needed to find an element in an array of size 32 using binary search?
Options:
Correct Answer: 7
Solution:
The maximum number of iterations is log2(32) = 5, but since we count from 0, it can take up to 6 iterations.