12 marks
State the two actions from the list below that a program needs to take to store data in a file.
activate
calculate
close
open
output
print
read
search
sort
write
Did this page help you?
State the two actions from the list below that a program needs to take to store data in a file.
activate
calculate
close
open
output
read
search
sort
write
How did you do?
Did this page help you?
State five file-handling operations from the list below:
calculate
close
count
create
input
open
output
read
sort
search
test
total
write
How did you do?
Did this page help you?
Explain why a program might need to store data in a file
How did you do?
Did this page help you?
A program halted unexpectedly with the error message ‘File not found’ whilst trying to read data from a file.
Outline the actions that the program needs to take to prevent this error occurring.
How did you do?
Did this page help you?