4. Computational Thinking, Problem-Solving and Programming

File Handling — Quiz

Test your understanding of file handling with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

What is file handling in computer programs?

Question 2

Why might a programmer use a file instead of storing all data only in variables?

Question 3

What does it mean to open a file in a program?

Question 4

Which file access mode is typically used when a program needs to add new information to the end of an existing file?

Question 5

What is the main purpose of closing a file after it has been used?