Question: What will be the output of the following Python code: arr = [1, 2, 3, 4, 5]; binary_search(arr, 3)?
Options:
Correct Answer: 2
Solution:
The binary search will return the index of the element \'3\', which is 2.