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

What is reference modification? What is UNION in sql and syntax? What is the difference between GDGS and VSAM? Which is prefer one? What is processing groups in endevor?

1 Answers   Kuwait Oil Company,


ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????

6 Answers   TCS,


How we copy a program from production region to development region.What is the process & syntax ?

3 Answers   CTS,


example for sub strings ? and refernce modifications whit output pls

0 Answers   College School Exams Tests, IBM,


What is difference between comp & comp-4?

6 Answers  






how to resolve the file status 47.......

1 Answers   MMM,


SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICATION,Run-time option.

3 Answers   Lehman Brothers,


i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

1 Answers   HCL,


I hav vari declaration like..... 77 a pic s9(9).99. 77 b pic s9(9).99 comp. 77 c pic s9(9).99 comp-3. if i use MOVE 123456789.99 to a,b,c what happen every one working fine ?

1 Answers   Mphasis,


What is SDSF?

13 Answers   IBM,


If we use GO BACK instead of STOP RUN in cobol?

2 Answers   Temenos,


how can we code index in an array of cobol pgm?

1 Answers   Wipro,


Categories