
Python L36 Snake Highscore

Quiz
•
Information Technology (IT)
•
6th - 8th Grade
•
Hard
Future Teacher
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Ch2變數與運算式-綜合演練選擇題

Quiz
•
6th - 8th Grade
10 questions
2.10Format file yang dihasilkan dari file Ms. Word dan Google do

Quiz
•
7th Grade
15 questions
Informatika 6-sinf uchun 5-sinfni takrorlash

Quiz
•
6th Grade
10 questions
Basic Logic & Programming pt.2

Quiz
•
6th Grade - University
10 questions
Grade 7- Files and Folders

Quiz
•
7th Grade
11 questions
Quiz tentang Perangkat Keras Komputer

Quiz
•
7th Grade
15 questions
Bab 3 Teknologi Informasi dan Komunikasi Kelas 7

Quiz
•
7th Grade
15 questions
Manajemen File dan Folder

Quiz
•
7th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
15 questions
PRIDE

Quiz
•
6th - 8th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
27 questions
Geo #2 Regions

Quiz
•
8th Grade
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Adding and Subtracting Integers

Quiz
•
6th Grade