
Python file handling
Quiz
•
Computers
•
8th - 11th Grade
•
Practice Problem
•
Medium
Kevin Johnson
Used 224+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the last action that must be performed on a file?
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the data type of data read to and from a file?
String
Integer
Real
Boolean
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Reading from a file often involves using...
A loop
A condition
Comments
A print() statement
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Appending to a file means adding extra data into the file.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code do?
opens a text file, reads the contents and prints to the screen
opens a text file and writes the variable 'record' to the file
opens a text file and prints 'record' to the screen
opens a text file and prints it out
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What escape character is used to make a new line?
\t
\r
\n
\newline
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct Python code to get the number of items in a list named 'scores'
len(scores)
length(scores)
scores.len()
10
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
10 questions
Asesmen Unit One dan Unit Two MIT APP INVENTOR
Quiz
•
8th Grade
10 questions
THE PHOTOSHOP WINDOW
Quiz
•
7th - 8th Grade
12 questions
Creating Webpages
Quiz
•
6th - 8th Grade
10 questions
Cyberbulling
Quiz
•
10th Grade
10 questions
Table in PowerPoint
Quiz
•
9th Grade
10 questions
Animasi 2D dan 3D Ulangan Harian BAB 1
Quiz
•
11th Grade
10 questions
kuis komponen penyusun UI/UX
Quiz
•
10th Grade
15 questions
(ก่อนเรียน) การใช้งานแอปพลิเคชัน Canva
Quiz
•
6th - 8th 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
