Font size
WorksheetsFile Writing
Total questions: 20
Worksheet time: 2mins
What do you need to import in order to delete a file? (S.C)
Why are with statements useful? (S.C)
What does the 'x' access mode do? (S.C)
What does the 'r+' access mode do? (S.C)
Which of the following might need a read only file? (S.C)
What is a file? (S.C)
What happens if you forget to close the file? (S.C)
Can you delete a file? (S.C)
Yes, files only exist while the program is running.
What will this code do if there is a file called "food.txt"? (S.C)
What does this code do? (S.C)
How do you delete a file? (M.A)
Do you need quotation marks around the access module? (M.A)
What does the access module a+ do? (M.A)
What does the access module w+ do? (M.A)
Does this code save and write to the file? (M.A)
Why do you need file writing? (M.A)
What does this code do? (M.A)
What does .read do? (M.A)
How do you close a file? (M.A)
How can you check if a file with a certain name already exist? (M.A)
