## Buy/Download all MCQ Ebook
>>>**Click Here**<<<

## Data Structure Questions and Answers-Binary Search Iterative

## Click on any option to know the CORRECT ANSWERS

Question 1 |

What is the advantage of recursive approach than an iterative approach?

Consumes less memory | |

Less code and easy to implement | |

Consumes more memory | |

All of the mentioned |

**Arab culture Questions answers**

Question 1 Explanation:

A recursive approach is easier to understand and contains fewer lines of code.

Question 2 |

Choose the appropriate code that does binary search using recursion.

public static int recursive(int arr[], int low, int high, int key) { int mid = low + (high - low)/2; if(arr[mid | |

public static int recursive(int arr[], int low, int high, int key) { int mid = low + (high + low)/2; if(arr[mid |