

Python FIles 3
Flashcard
•
Other
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What parameter must be added to the open() function to append content to the end of a file?
Back
"a"
2.
FLASHCARD QUESTION
Front
Which method will overwrite any existing content in a file? Options: "w", "a", "r", "x"
Back
"w"
3.
FLASHCARD QUESTION
Front
To create a new file in Python, which parameter should not be used with the open() method? Options: "x", "a", "w", "r"
Back
"r"
4.
FLASHCARD QUESTION
Front
What does the "x" parameter do when used with the open() function?
Back
Creates the file, errors if exists
5.
FLASHCARD QUESTION
Front
Which of the following is not a valid file handling mode in Python? "b", "a", "w", "x"
Back
"b"
6.
FLASHCARD QUESTION
Front
What will happen if you open a file with "w" mode and the file does not exist?
Back
The file will be created
7.
FLASHCARD QUESTION
Front
Which function is used to read the content of a file in Python?
Back
read()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?