Back to the full dot-point answer
EnglandComputer ScienceQuick questions
3.2 Programming
Quick questions on File handling: reading and writing text files - AQA GCSE Computer Science
2short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.
What is q1?Show answer
State one reason a program would write data to a file rather than a variable. [1 mark]
What is q2?Show answer
State why a file should be closed after writing to it. [1 mark]
Have a question we have not covered?
This dot-point answer is short enough that we have not extracted many short questions yet. Read the full dot-point answer or ask Mo, our study assistant, in the chat for follow ups.