Multiple choice technology mainframe

The following is Data Division entry 01 EMP-RECORD. 02 EMP-NAME. 04 FIRST-PART. 05 FIRST-NAME PIC X (10). 05 MIDDLE-NAME PIC X (10). 04 SURNAME PIC X(20). Which one of the following gives correct information about the above record description.

  1. It is correct.

  2. It is not correct because first-name and middle name contain the same PIC Clauses

  3. Not correct because the PIC Clause is missing for the first three data items.

  4. Not correct because the level number 03 is missing

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

The COBOL record description is syntactically correct. Level numbers increase from 01 to 02 to 04 to 05, showing proper hierarchical nesting. FIRST-PART (04) contains two elementary items (05), and SURNAME (04) is a sibling to FIRST-PART. There's no requirement that sibling items have different PIC clauses, level 03 is not missing (the hierarchy is 01-02-04-05), and group items (like EMP-NAME and FIRST-PART) don't need PIC clauses - only elementary items do.