File Handling Quiz
Check what you learned in the Reading and Writing Files lesson. Every question explains the answer, so even a wrong answer teaches you something.
- 15 questions, picked from a pool of 49
- About 12 minutes
- Instant feedback
What this quiz covers
- Writing a file (opens in a new tab)
- Reading a whole file (opens in a new tab)
- Reading line by line (opens in a new tab)
- Appending (opens in a new tab)
- File modes (opens in a new tab)
- Why use with? (opens in a new tab)
- Handling a missing file (opens in a new tab)
- Writing and reading numbers (opens in a new tab)
- CSV files (opens in a new tab)
- JSON files (opens in a new tab)
Know something worth teaching? Write your own tutorial with runnable examples and share it.
Want to test your friends or students? Build your own Python quiz with the same question types and share it with a link.
Create a quiz