Week 4 Unit 1: Self-test

22. October 2024

Question 1

Which of the following statements about file handling in Python are correct?

Note: There are 3 correct answers to this question.


It is possible to write into files and read from files.
Usually a file has an extension like .docx or .xlsx. In Python, you can only work with files that have the extension .py.
Files are necessary to speed up a program.
Most files store the data sequentially.
Files are used to store data persistently.


< Previous unit | Next unit > | Course Overview