Recall & Review
beginner
What is file handling in programming?
File handling means reading data from files and writing data to files so programs can save and use information even after they stop running.
Click to reveal answer
beginner
Why do programs need file handling?
Programs need file handling to save data permanently, share data between programs, and work with large amounts of information that don't fit in memory.
Click to reveal answer
beginner
Give a real-life example of why file handling is useful.
Like saving your game progress on a console, file handling lets programs save your work so you can continue later without losing data.
Click to reveal answer
beginner
What happens if a program does not use file handling?
Without file handling, all data would be lost when the program stops because it only stays in temporary memory (RAM).
Click to reveal answer
beginner
Name two common operations in file handling.
Reading data from a file and writing data to a file are two common file handling operations.
Click to reveal answer
Why is file handling important in programming?
✗ Incorrect
File handling allows programs to save data permanently so it can be used later.
What happens to data if a program does not use file handling?
✗ Incorrect
Without file handling, data stays only in temporary memory and is lost when the program ends.
Which of these is a file handling operation?
✗ Incorrect
Reading data from a file is a basic file handling operation.
File handling helps programs to:
✗ Incorrect
File handling lets programs save data and use it again later.
Which is NOT a reason to use file handling?
✗ Incorrect
File handling does not make programs run instantly; it helps with data storage and sharing.
Explain in your own words why file handling is needed in programming.
Think about what happens to data when a program stops running.
You got /4 concepts.
Describe two common file handling operations and why they are useful.
Consider how programs get data from files and store new data.
You got /4 concepts.