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

What is the difference between working storage copybook and linkage section copybook?

5 Answers   TCS,


In the JCL, how do you define the files referred to in a subroutine ?

2 Answers  


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

3 Answers  


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1 Answers  


why we are using picture clause in the cobol programs?

2 Answers  






What is the file organization clause ?

2 Answers  


I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?

15 Answers   ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,


If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.

3 Answers  


Describe the difference between subscripting and indexing ?

2 Answers  


Whtz the specialty of 77 level number ?

2 Answers   Infosys,


TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


Categories