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

if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible

3 Answers   IBM,


how can we find total no of records in a file ....is there any utility......?

3 Answers   IBM,


example for sub strings ? and refernce modifications whit output pls

0 Answers   IBM, College School Exams Tests,


How can we increase the size of an existing PDS to include more no. of modules.

3 Answers  


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

0 Answers   HCL,






What is the difference between SEARCH and SEARCH ALL? What is more efficient?

9 Answers   IBM, iFlex, Wipro,


How to find whether a Flat file is empty or not without Reading a file in COBOL Program. (not using JCL)

9 Answers   Bank Of America,


What divisions, sections and paragraphs are mandatory for a COBOL program?

8 Answers  


How to Write the RESTART Logic Using COBOL?

4 Answers   Syntel, L&T, GalaxE, TCS,


if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?

1 Answers   Patni,


Whats the use of Examine command? can someone help me?

1 Answers   IBM,


What is the reference modification.

2 Answers  






Categories