Given a sorted array arr = {5,6,77,88,99} and key = 88; using binary search…

PYQ CoCubes 2024

Given a sorted array arr = {5,6,77,88,99} and key = 88; using binary search with mid = ⌊(low + high) / 2⌋, how many iterations are done until the element is found?

  1. A.

    1

  2. B.

    3

  3. C.

    4

  4. D.

    2

Attempted by 80 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…