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
19 questions
ICT_IGCSE_Chapter11_FileManagment

Quiz
•
9th - 12th Grade
10 questions
PYTHON

Quiz
•
9th - 12th Grade
12 questions
Basic Linux Commands Part 1

Quiz
•
9th - 12th Grade
10 questions
Comments and Variables in Python Programming

Quiz
•
11th Grade
14 questions
Files e Tokens

Quiz
•
11th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
Wrażenia globlne w Linxie

Quiz
•
10th Grade - University
10 questions
Basic File Handling Recap

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade