Python Test 18

File Operations

Choose one option for each question. This test focuses on Python file handling. Most questions are code-based and cover file modes, reading methods, writing and appending text, cursor behavior, line processing, and safe use of context managers.