Multiple choice technology programming languages

Default compiler options with respect to subscript out of range checking.

  1. SSRANGE

  2. NOSSRANGE

  3. RANGE

  4. None of the above

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

In IBM Enterprise COBOL, the default option for subscript and index range checking is NOSSRANGE. When NOSSRANGE is active, the compiler does not generate code to verify if subscripts or indexes are within the defined bounds of the table, whereas SSRANGE enables this overhead-inducing check.

AI explanation

To understand the default compiler options with respect to subscript out of range checking, let's go through each option:

Option A) SSRANGE - This option is incorrect because SSRANGE is not the default compiler option for subscript out of range checking. It enables runtime checking of subscript ranges.

Option B) NOSSRANGE - This option is correct because NOSSRANGE is the default compiler option for subscript out of range checking. It disables runtime checking of subscript ranges.

Option C) RANGE - This option is incorrect because RANGE is not a valid compiler option for subscript out of range checking.

Option D) None of the above - This option is incorrect because the correct option is B) NOSSRANGE.

The correct answer is B) NOSSRANGE. This option is correct because it is the default compiler option for subscript out of range checking, disabling the runtime checking of subscript ranges.