File I/O Quiz

Complete this assessment with 100% score to master this chapter.

01What is the best way to open a file to ensure it closes automatically?

02Which mode should you use to add text to the END of an existing file without overwriting it?

03What is the most memory-efficient way to process a very large text file line by line?

04What does json.loads() do vs json.load()?

05Why should you specify encoding='utf-8' when opening text files?