Writing files in python

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Adrian Ortiga
Used 11+ times
FREE Resource
13 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
One of the simplest ways to save data in Python is to write it to a _____
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is one of the simplest ways to save data in python?
At home
Keyword
File
Folder
3.
DRAG AND DROP QUESTION
1 min • 1 pt
When you write text to a (a) , the output will still be (b) after you (c) the terminal containing your program’s (d) .
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write python the python code to open a the file "notes.txt" in write mode as file_object.
with open("notes.txt","r") as file_object:
with open("notes.txt","a") as file_object:
with open("notes.txt","x") as file_object:
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write python the python code to open a the file "data.txt" in reading mode as file_object.
with open('data.txt','w') as file_object:
with open('data.txt',"a") as file_object:
with open("data.txt",'x') as file_object:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write python the python code to open a the file "students.txt" in append mode as file_object.
with open('students.txt', 'w') as file_object:
with open('students.txt', "r") as file_object:
with open("students.txt", 'x') as file_object:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What can Python write to a text file?
numerical data
strings
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Binary files in Python

Quiz
•
12th Grade
12 questions
Mengenal Sistem Operasi Linux

Quiz
•
9th - 12th Grade
12 questions
Διαχείριση Αρχείων στην Python

Quiz
•
12th Grade
10 questions
Python file

Quiz
•
1st - 10th Grade
10 questions
Files / Folders

Quiz
•
9th - 12th Grade
10 questions
Spreadsheet

Quiz
•
10th Grade
10 questions
Generic File Format

Quiz
•
9th Grade
10 questions
Մոդուլներ

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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

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

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

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

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

Interactive video
•
9th - 12th Grade