Multiple choice technology mainframe

SEARCH ALL is a _______ type of Search ?

  1. Serial Search on sorted table

  2. Binary Search on sorted table

  3. Serial Search on Non sorted table

  4. Binary Search on Non sorted table

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

SEARCH ALL in COBOL implements binary search, which requires the table to be sorted. Binary search repeatedly divides the search interval in half, making it much faster than serial search (option C), but only works on sorted data. Regular SEARCH uses serial search.