
T-Level DPDD: File Handling Quiz
Authored by Sara Burton
Computers
11th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a mode for opening files in Python?
Append
Create
Delete
Read
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Python notation for opening a file in text mode?
"r"
"w"
"b"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python mode is used to open a file for writing?
"a"
"x"
"r"
"w"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the "r" mode in Python do?
Opens a file for appending
Opens a file for writing
Opens a file for reading
Creates a new file
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function used to open a file in Python?
read()
write()
open()
create()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the "a" mode in Python do?
Opens a file for reading
Opens a file for writing
Opens a file for appending
Creates a new file
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to open a file named "practicefile.txt" for reading in Python?
h = open("practicefile.txt", "w")
h = open("practicefile.txt", "r")
h = open("practicefile.txt", "a")
h = open("practicefile.txt", "x")
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?