
Python L36 Snake Highscore
Quiz
•
Information Technology (IT)
•
6th - 8th Grade
•
Practice Problem
•
Hard
Future Teacher
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of with open("data.txt") as file: in the scoreboard?
To print data to the screen
To permanently delete the file
To open and read the high score
To create a new window
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to update the file with the new high score?
file.read()
file.write()
file.close()
file.remove()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when int(file.read()) is called?
It deletes the data
It reads a number from the file and turns it into an integer
It reads a number and converts it into a string
It saves the score into the file
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about with open(...)?
It must be closed manually
It reads and writes at the same time
It automatically closes the file afterward
It causes the game to pause
5.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
In Python, the method to read the entire content of a file is ____().
6.
DRAG AND DROP QUESTION
1 min • 1 pt
To save the high score to data.txt, we use the mode " (a) " in open("data.txt", " (b) ").
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
file.read() returns a string, even if the content is a number.
True
False
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
Ultrasonic Sensor - L1
Quiz
•
6th Grade - University
15 questions
What is a Robot? Part 3
Quiz
•
6th Grade
10 questions
Robotics and AI trivia for kids
Quiz
•
1st - 6th Grade
12 questions
DTP Application
Quiz
•
7th Grade
10 questions
QUIZ 1 TLE
Quiz
•
6th Grade
15 questions
Ulangan Harian Kelas 7.1
Quiz
•
7th Grade
10 questions
informatika ceria
Quiz
•
7th Grade
10 questions
informatika terseyum
Quiz
•
8th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
22 questions
distributive property
Quiz
•
7th Grade
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
20 questions
Slope from a Graph
Quiz
•
8th Grade
