Writing files in python
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Adrian Ortiga
Used 11+ times
FREE Resource
Enhance your content in a minute
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
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?
Similar Resources on Wayground
13 questions
Pengenalan Aplikasi Blender
Quiz
•
11th Grade
10 questions
emtech
Quiz
•
12th Grade
9 questions
IT related jobs
Quiz
•
9th Grade
10 questions
Trắc nghiệm bài 12 tin học 11
Quiz
•
11th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
Quiz Kelas 4
Quiz
•
10th Grade
12 questions
BÀI 2: TRÍ TUỆ NHÂN TAO TRONG KHOA HỌC VÀ CUỘC SÔNG
Quiz
•
12th Grade
8 questions
Basic computer
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
