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
Was this exam question helpful?
Exam code: 0478 & 0984
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?
Was this exam question helpful?
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?
Was this exam question helpful?
Outline why it is useful to store data in a file.
How did you do?
Was this exam question helpful?
Explain why a program might need to store data in a file
How did you do?
Was this exam question helpful?
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?
Was this exam question helpful?
The function LENGTH(X) calculates the length of a string X
Write the pseudocode statements to:
read the contents of the text file Quotation.txt into an appropriate string variable that has been declared
output the string in upper case and the length of the string.
How did you do?
Was this exam question helpful?