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 maximum size of a 01 level item in COBOL I? in COBOL II?

2 Answers   RBS,


Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

7 Answers   TCS,


A LESS 1200 IF B GREATER 25 MOVE 47 TOC ELSE MOVE 57 TO C IF A GREATER 249 MOVE 67 TO C ELSE NEXT SENTENCE ELSE IF B LESS 67 MOVE 27 TO C What will be the value of C, when A is 137 and b is 25

3 Answers   TCS,


How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?

1 Answers  


how to convert vsam table into DB2 table?

1 Answers   Wipro, IBM,






what is the advantage of using redefines instead of delaring the variables ?

5 Answers   HCL,


Describe the difference between subscripting and indexing ?

2 Answers  


In INITIALIZE what is Repalcing Word will do

1 Answers   CTS,


what is the minimum number of lines a Cobol program should have to successfully compile and run

7 Answers  


01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??

1 Answers  


how we separate the cobol cics statements from cobol&cics programming?

1 Answers   Valtech,


What is the point of the REPLACING option of a copy statement?

3 Answers  






Categories