Multiple choice technology mainframe

What is the only statement in the EXIT para

  1. 1000-EXIT

  2. EXIT

  3. 1000_EXIT

  4. BOTH a and b

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

In COBOL and similar structured programming languages, paragraph names follow a specific format: numeric identifier followed by a descriptive name, with the separator being a hyphen. 1000-EXIT follows this convention correctly. Option B (EXIT) lacks the required numeric prefix, and Option C uses an underscore which is non-standard.

AI explanation

In COBOL, an exit paragraph is written as a paragraph name followed by a single statement, e.g. 1000-EXIT. then EXIT.. Here 1000-EXIT is only the paragraph name (a label the programmer chooses); the question asks for the only statement legally placed inside such a paragraph. That statement is EXIT, a no-op that simply returns control to the point after the PERFORM. Therefore the correct answer is EXIT (id 573319). 1000-EXIT and 1000_EXIT are naming forms, not statements, and underscores aren't even valid COBOL name separators (COBOL uses hyphens). The DB's marked answer confused the paragraph name with the statement.