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

Answers were Sorted based on User's Feedback



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

Answer / anil prajapati

in cobol Binay search is referred as search all , record
should be in sorted order but sequential search is termed
as search in sequential search not required that record
should be sorted order

Is This Answer Correct ?    7 Yes 2 No

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

Answer / shailendra

binary search :
only = is valid, only one comparision os possible, search
all will be in syntex,input file will be sorted order with
the key on which basis we search.

seqential search :
many comparision is possible at the same time,
all the comparision > < = greater equal and other
comparision is possible
srted order is not req.
in syntex only search will mention

Is This Answer Correct ?    5 Yes 1 No

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

Answer / sharath

Binary search
1)It is for search all.
2)access is faster.
3)sort order is either ascending or descending.
Sequential search
1)It is for linear search
2)access is slow
3)only ascending order

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More COBOL Interview Questions

Hai friends why we need to read a file before re-write a record?

7 Answers   L&T,


How to convert bunch of words in a line to relvant ASCII values?

2 Answers  


can we use 77 level no for Redefines?if we use give an example?

3 Answers   Mphasis,


How to read the last 100 records from a COBOL file. The file contains N number of records.

11 Answers   IBM,


Explain about level numbers?

3 Answers  






Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

7 Answers   TCS,


how to transfer the file from pc to mainframe??

5 Answers   TCS,


How can you get the ksds file records into your cobol program?

0 Answers  


How much salary you are expecting? If they ask in an interview, what we have to tell?

6 Answers   Tech Mahindra, Wipro,


What is static and dynamic call in cobol?

0 Answers  


What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.

3 Answers   IBM, Xansa,


What is SET TO TRUE all about, anyway?

5 Answers  


Categories