Multiple choice technology mainframe

SEARCH command used for

  1. binary search & the table must be sorted

  2. serial search

  3. binary search

  4. All the above

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

The SEARCH verb in COBOL performs a serial (sequential) search by default, examining table elements one-by-one until a match is found. The table need not be sorted. For binary search on sorted tables, COBOL provides SEARCH ALL, not SEARCH. The question specifically asks about SEARCH command without ALL.