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?
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?
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?
Outline why it is useful to store data in a file.
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?
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?
Did this page help you?