Cobol Question:
Download Questions PDF

What is binary search?

Answer:

Search on a sorted array. Compare the item to be searched with the item at the center. If it matches, fine else repeat the process with the left half or the right half depending on where the item lies.

Download Cobol Interview Questions And Answers PDF

Previous QuestionNext Question
My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not ABEND. What is wrong with it?What should be the sorting order for SEARCH ALL?