Game Dev Coding Semester Test

Game Dev Coding Semester Test

Assessment

Passage

Computers

9th Grade

Easy

Created by

Kim Conant

Used 4+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the width of the game screen as set in the code?

800

600

400

300

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to play background music in the code?

music.play('epic.wav')

sound.play('epic.wav')

audio.play('epic.wav')

bgm.play('epic.wav')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which list is used to store the background images?

bg_images

enemy_bullets

powerup_images

enemies

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the code randomly select a background image?

By using random.choice(bg_images)

By using random.randint(bg_images)

By using bg_images[0]

By using random.shuffle(bg_images)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you want to increase the size of the player ship. Which property would you change?

player.scale

player.pos

player.image

player.speed

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would happen if you set the value of HEIGHT to 400 instead of 600?

The game screen would be shorter vertically

The game screen would be wider horizontally

The player ship would move faster

The background music would change

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why might you use lists like 'bullets', 'enemies', and 'enemy_bullets' in a game?

To keep track of multiple objects of the same type during gameplay

To store background music files

To save player scores

To change the screen resolution

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?