Multiple choice technology mainframe

Which of the following is False?

  1. Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array.

  2. An index can only be modified using PERFORM, SEARCH & SET.

  3. Need to have index for a table in order to use SEARCH, SEARCH ALL.

  4. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All statements A, B, and C are true in COBOL. A subscript refers to the occurrence number in an array, while an index represents byte displacement. Indices can only be modified with PERFORM, SEARCH, or SET statements, and SEARCH operations require an index. Since all A, B, C are true, D (None of the above is False) is the correct answer.