Multiple choice technology programming languages

While reading a SDF file, if AT END clause is skipped,

  1. program will abort

  2. command will fail but last line will remain populated in the file- variables

  3. command will fail and file-variables will be blank

  4. the program will give a compile time error

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

If the AT END clause is omitted during a sequential READ statement in COBOL, and no appropriate declarative error handler is defined, the compiler cannot determine the end-of-file behavior, leading directly to a compile-time error rather than runtime failures.