The array is as follows: 1,2,3,6,8,10. Given that the number 17 is to be…

PYQ CoCubes 2023

The array is as follows: 1,2,3,6,8,10. Given that the number 17 is to be searched. At which call it tells that there’s no such element? (By using linear search(recursive) algorithm)

  1. A.

    7th call

  2. B.

    9th call

  3. C.

    17th call

  4. D.

    The function calls itself infinite number of times

Attempted by 971 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…