Multiple choice technology mainframe

Which of the below lines of PARA-A has COBOL rules missed. PARA-A. IF A=B (Line No.1) NEXT SENTENCE (Line No.2) ELSE (Line No.3) IF C=D (Line No.4) Move 20 to C (Line No.5) Move A B to C (Line No.6) Move B to C D (Line No.7) End-If (Line No.8) Move A to B (Line No.9) Move C to D (Line No.10) PARA-EXIT. EXIT.

  1. (A) END-IF was missed for a IF

  2. (B) Dot was missed in last line of PARA-A(line no.10)

  3. (C) Line No. 7

  4. (D) Line No. 6

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

In COBOL, every paragraph must end with a period (.). PARA-A contains multiple statements, and the last statement before PARA-EXIT is 'Move C to D' (line 10), which should end with a period. The period marks the end of the paragraph and is required for proper compilation.