Multiple choice technology mainframe

4) The maximum number of dimensions that an array can have in COBOL-85 is -----?

  1. 6

  2. 8

  3. 7

  4. 9

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

COBOL-85 permits a maximum of 7 dimensions for an array (OCCURS clause can be nested 7 levels deep). Earlier COBOL versions had lower limits. Options 6 and 8 are incorrect limits. Option 9 exceeds the COBOL-85 specification constraint.

AI explanation

To answer this question, we need to understand the maximum number of dimensions that an array can have in COBOL-85.

Option A) A. 6 - This option is incorrect because the maximum number of dimensions in COBOL-85 is not 6.

Option B) B. 8 - This option is incorrect because the maximum number of dimensions in COBOL-85 is not 8.

Option C) C. 7 - This option is correct. In COBOL-85, the maximum number of dimensions that an array can have is 7.

Option D) D. 9 - This option is incorrect because the maximum number of dimensions in COBOL-85 is not 9.

The correct answer is C. The maximum number of dimensions that an array can have in COBOL-85 is 7.