SORT STUDENT-FILE ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME USING INPUT-FILE GIVING OUTPUT-FILE. Which one of the following is false.

(a)All records with same CLASS-NUMBER will appear together in the consecutive positions of the sorted file.
(b)The data-names CLASS-NUMBER and STUDENT-NAME must appear in the record description of STUDENT-FILE.
(c)The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
(d)The sizes of the records described for STUDENT-FILE , INPUT-FILE and OUTPUT-FILE must be equal.

Answer: c

0 comments: