12 markseasy
(a)
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
6 questions · 18 marks · ≈ 18 min
State the two actions from the list below that a program needs to take to store data in a file.
State five file-handling operations from the list below:
Outline why it is useful to store data in a file.
Explain why a program might need to store data in a file
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.
The function LENGTH(X) calculates the length of a string X
Write the pseudocode statements to: