Multiple choice technology programming languages

If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file?

  1. They will be blank and/or zero.

  2. They will be null.

  3. They will equal the values of the first record in the file.

  4. They will equal the values of the last record read

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

In RPG and similar file processing environments, once the end-of-file (EOF) is reached, subsequent read operations do not clear the buffer; the input fields retain the values of the last successfully read record.