T-Level DPDD: File Handling Quiz

Quiz
•
Computers
•
11th Grade
•
Medium
Sara Burton
Used 2+ times
FREE Resource
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")
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Linux-2 Quiz 2 -- LAMP

Quiz
•
1st - 12th Grade
10 questions
File Handling in Python

Quiz
•
11th - 12th Grade
15 questions
Python программалау тілі

Quiz
•
11th Grade
12 questions
Text File Pop Quiz

Quiz
•
11th Grade
12 questions
Mengenal Sistem Operasi Linux

Quiz
•
9th - 12th Grade
10 questions
Computer High Level - Quiz

Quiz
•
6th - 11th Grade
13 questions
Writing files in python

Quiz
•
9th - 12th Grade
10 questions
File Type Extensions

Quiz
•
8th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade