Python L36 Snake Highscore

Python L36 Snake Highscore

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Keyboard

Keyboard

8th Grade

10 Qs

Quiz TIK Kelas 4 (Microsoft Word)

Quiz TIK Kelas 4 (Microsoft Word)

4th Grade - University

10 Qs

PH Sistem Komputer Kelas 7

PH Sistem Komputer Kelas 7

7th Grade

10 Qs

2025/2026 - Sem 1 - Kelas 8 - 03_UH 3 [Hal. 40] (ORI)

2025/2026 - Sem 1 - Kelas 8 - 03_UH 3 [Hal. 40] (ORI)

8th Grade

15 Qs

Asesmen Diagnostik Kognitif Teknik Informatika kelas 8

Asesmen Diagnostik Kognitif Teknik Informatika kelas 8

8th Grade

10 Qs

G7 Remedial STS 2 Informatika

G7 Remedial STS 2 Informatika

7th Grade

10 Qs

Diagnostik Kognitif Informatika Awal Kelas 7

Diagnostik Kognitif Informatika Awal Kelas 7

7th Grade

10 Qs

PERANGKAT LUNAK MS OFFICE

PERANGKAT LUNAK MS OFFICE

8th Grade

10 Qs

Python L36 Snake Highscore

Python L36 Snake Highscore

Assessment

Quiz

Information Technology (IT)

6th - 8th Grade

Hard

Created by

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)   ").

write
w
a
append
r
read

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?