English

Binary search looks for the element to search in position:

Advertisements
Advertisements

Question

Binary search looks for the element to search in position:

Options

  • First

  • Middle

  • Last

  • Any random

MCQ
Advertisements

Solution

Middle

Explanation:

  • Binary search first checks the middle element of the sorted array.
  • Based on the comparison, it searches either the left half or the right half.
shaalaa.com
  Is there an error in this question or solution?
Chapter 8: Arrays - Sort & Search - Exercises [Page 197]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 8 Arrays - Sort & Search
Exercises | Q 1. (iv) | Page 197
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×