Programming · 4 question types
Past paper frequency (2018 to 2024)
This topic accounts for approximately 3% of your exam marks.
OPENFILE, READFILE, WRITEFILE, CLOSEFILE pseudocode operations appear occasionally.
Common mistakes that lose marks (and lose data in real programs):
WRITE mode when you meant APPEND. Destroys all existing contents.CLOSEFILE. Buffered data may not reach the disk; the file may be incomplete or corrupt.NOT EOF.OPENFILE opens for one specific mode. To switch between reading and writing, close and reopen the file.