Quiz 7: Testing, Tracing, and File I/O
Learning Goals
Students should be able to:
- Understand how to open files in different modes
- Open files in different modes using Python's open() function
- Read data from files using readline() and readlines()
- Write data to files using write()
- Explain the difference between reading, writing, and appending files
- Understand how programs create and modify files
- Understand different file types
- Write short functions to handle data from different file types
- Explain what an exception is and give examples of exceptions in Python
- Handle exceptions using try/except statements
Solutions
You will find the link to the quiz solutions on this page, once all students have had the opportunity to take the quiz.
Access the Quiz 7 Retake 1 solutions
Access the Quiz 7 Retake 2 solutions