Multiple choice technology mainframe

Which of the following are the minimum requirements to compile a program without errors ?

  1. Identification Division.

  2. Program-ID.

  3. Program-name.

  4. All the above

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

To compile a COBOL program without errors, the minimum requirements are: Identification Division (which contains the Program-ID paragraph) and the Program-ID paragraph itself (which specifies the program name). All these components are mandatory and must be present for the program to be syntactically valid and compilable.