General Knowledge Basic General Knowledge Objective
Mar 15, 2013

While the following statement is executed
    READ IN-FILE AT END PERFORM CLOSE-UP
When the AT END path is taken?

Choose the correct answer:
A) The last record is being read and the current READ encounters the EOF
B) All the records have been read and the current READ encounters the EOF
C) The program execution is about to terminate; AT END is a declaration specifying terminal processing and has nothing to do with the READ statement in which it appears
D) The statement is incorrect since AT END should be followed by GO TO
Detailed Explanation

Option b is right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback