Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

What is binary search?

Answers were Sorted based on User's Feedback

What is binary search?..

Answer / sachin

Prefer when the table size is significantly large.

When the size of the table is large and it is arranged in
some sequence -either ascending or descending on search
field, then BINARY SEARCH would be the efficient method.

Table should be in sorted order of the searching argument.
There should be ASCENDING/DESCENDING Clause.
Index need not be set to 1 before SEARCH ALL.

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

Is This Answer Correct ?    4 Yes 0 No

What is binary search?..

Answer / ravi

Binary search...sequential search..must be in an sirted divides the table in to 2 parts

Is This Answer Correct ?    2 Yes 1 No

What is binary search?..

Answer / vidhya

Serial search is most cost-effective up to 70 rows, If the
table has more than 70 rows then Binary search is effecient.
The table should be in ascending or descending order

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is the difference between a binary search and a sequential search?

10 Answers  

What are different file OPEN modes available in COBOL?

4 Answers   Sun Life,

What is the difference between goback, stop run and exit program in cobol?

0 Answers  

How to increase the logical record length of existing PS file?

7 Answers  

Have you code any new programs in COBOL ? What is the functionality of the programs?

2 Answers   Patni, Xansa,

in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......

2 Answers   IBM,

Explain fixed length record in cobol? with suitable example

1 Answers   IBM,

I try to use some column names in my cobol progorm but these column not in db2 table ..when do i get error ..while bind time or runtime?

2 Answers  

)what is retrieve?

1 Answers   IBM,

which one is the best of com and com-3.using of real time ?

7 Answers   Cap Gemini,

what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,

)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

0 Answers   IBM,