What are the two search techniques ?

Answers were Sorted based on User's Feedback



What are the two search techniques ?..

Answer / vish

If you talk in COBOL, then yes we have type os searches -
sequential search and Binary search.

Syntax:
SEARCH - Sequential
SEARCH ALL - Binary

It is important to note that for the Binary search the
input file (or table) must be sorted order else the result
of the SEARCH ALL will be wrong.

Is This Answer Correct ?    13 Yes 0 No

What are the two search techniques ?..

Answer / shashank v. singh

1.) serial search
2.) binary search

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More COBOL Interview Questions

I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


record length in spool?

2 Answers   Infosys,


What is the linkage section?

4 Answers  


i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2

9 Answers  


if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?

3 Answers  






example for sub strings ? and refernce modifications whit output pls

0 Answers   College School Exams Tests, IBM,


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

0 Answers  


What are the different rules of SORT operation?

0 Answers  


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

10 Answers  


what is the difference between Plan & package?

1 Answers   IBM,


When is inspect verb is used in cobol?

0 Answers  


Why would you use find and get rather than to obtain?

0 Answers  


Categories