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

how to display comp3 variables reply soon ?

4 Answers   Patni,


record length in spool?

1 Answers   Infosys,


Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.

3 Answers  


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length

3 Answers   TCS,


what is the purpose of linkage section?

10 Answers  






1)what is use of linkage section? 2)what is difference between comp and comp-3

1 Answers   Cap Gemini,


What is Alternate Index ? How is it different from regular index ?

2 Answers  


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,


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

7 Answers  


Can anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.

2 Answers  


How to open and see copy book ?

3 Answers  


how many bytes does s9(7)COMP-3 field occupies?

6 Answers   ADP,






Categories