
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Perangkat Keras Kelas 7
Quiz
•
7th Grade
11 questions
Keyboard Shortcuts
Quiz
•
5th Grade - University
10 questions
Quiz Google sheet inf 8 semester ganjil
Quiz
•
8th Grade
11 questions
ASESMEN AWAL KOGNITIF IFK
Quiz
•
8th Grade
10 questions
Pre Test Informatika Kelas 8
Quiz
•
8th Grade
10 questions
HOW TO BE SAFE WHEN SURFING ON THE INTERNET?
Quiz
•
7th Grade
9 questions
What you know- Keyboarding Wiz Quiz
Quiz
•
6th - 8th Grade
15 questions
IC3_GS6_Level1_Bài 1 Phần cứng máy tính
Quiz
•
6th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
20 questions
Percent of a Number
Quiz
•
6th Grade
15 questions
scatter plots and trend lines
Quiz
•
8th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
20 questions
Photosynthesis and Cellular Respiration
Quiz
•
7th Grade
