Multiple choice technology mainframe

What is the maximum Program Name length can be given in a Cobol Program.

  1. 10

  2. 20

  3. 30

  4. 40

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

The COBOL standard specifies that program names (PROGRAM-ID in the Identification Division) can be up to 30 characters long. This limit accommodates descriptive naming while maintaining compatibility across COBOL compilers. Options A (10) and B (20) are too short and unnecessarily restrictive, while Option D (40) exceeds the standard maximum length.

AI explanation

In this COBOL environment, the PROGRAM-ID (program name) is limited to a maximum of 30 characters. This is longer than the older 8-character limit some legacy compilers enforced, reflecting more modern COBOL standards that relaxed naming restrictions.