Which action writes data from memory to a file?

Study for the IGCSE Algorithms and Pseudocode exam to demonstrate mastery of computing foundations. Enhance learning with quizzes, in-depth explanations, and custom study plans. Begin your journey to success now!

Multiple Choice

Which action writes data from memory to a file?

Explanation:
File I/O involves opening, reading, writing, and closing a file. The action that moves data from memory into the file’s storage is writing. When you write, the data your program holds in memory is sent to the file, updating or saving it. Opening sets up access, closing ends the access (and may flush any buffered data), and reading brings data from the file into memory. So the operation that writes data from memory to the file is the write action.

File I/O involves opening, reading, writing, and closing a file. The action that moves data from memory into the file’s storage is writing. When you write, the data your program holds in memory is sent to the file, updating or saving it. Opening sets up access, closing ends the access (and may flush any buffered data), and reading brings data from the file into memory. So the operation that writes data from memory to the file is the write action.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy