Multiple choice technology programming languages

PROGRAM-ID is optional paragraph in any program

  1. True

  2. False

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

In COBOL, PROGRAM-ID is a required paragraph in the IDENTIFICATION DIVISION. Every COBOL program must have a PROGRAM-ID that uniquely identifies the program to the compiler and runtime system. Option A is incorrect because PROGRAM-ID is mandatory, not optional.

AI explanation

False — the statement is incorrect, i.e., PROGRAM-ID is NOT optional. In COBOL, the IDENTIFICATION DIVISION requires the PROGRAM-ID paragraph; it is in fact the only mandatory paragraph in that division (it names the program, which the compiler needs). Other paragraphs in IDENTIFICATION DIVISION (AUTHOR, INSTALLATION, DATE-WRITTEN, DATE-COMPILED, SECURITY, REMARKS) are optional/documentary and can be omitted, but PROGRAM-ID cannot. So marking the statement False (not optional) is correct.