wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

gamemaker

Total questions: 46

Worksheet time: 35mins

Name
Class
Date
1.

To hold your game's main player image you used

a)

an Object

b)

a Sprite

c)

an event

d)

an action

2.
Which of these is an example of an event?
a)
your object collides with another object
b)
move in a direction
c)
move to start position
d)
hide object
3.
Each event must have 
a)
a room
b)
a background
c)
an action
d)
a sprite
4.

Which action removes an object from a game (like after an explosion)?

a)

Outside Room

b)

Destroy Instance

c)

Alarm

d)

Wrap

5.

What action is used to choose a different sprite when your object changes direction?

a)

image_index

b)

set_sprite

c)

sprite_index

d)

set_image

6.

Background objects should be drawn ______ so they should appear ______ in the list of layers inside the Room Editor.

a)

first, first

b)

first, last

c)

last, first

d)

last, last

7.

Complete the sentence:

To move an object up . . .

a)

set hspeed to a negative number.

b)

set hspeed to a positive number.

c)

set vspeed to a negative number.

d)

set vspeed to a positive number.

8.

What does the built-in object, other, represent in collisions?

a)

a reference to the current instance ID

b)

the next event to be executed for the current instance

c)

the instance ID of the object with which this instance collided with

d)

the coordinate point of the location where the collision occurred

9.

How many steps in 3 seconds?

a)

30

b)

60

c)

120

d)

180

10.

Which is a valid way to move an instance of an object?

a)

Use the move() engine-defined function.

b)

Modify the object’s x and y properties.

c)

Modify the object’s height and width properties.

d)

Use a with() statement so that it will move with another object.

11.

Given a room resolution of 1024 x 768, which of the following expressions would return true if if the object has moved off the right side of the room?

a)

x < 0

b)

x > 1024

c)

y < 0

d)

y > 768

12.

Given a room resolution of 1024 x 768, which of the following expressions would return true if if the object has moved off the left side of the room?

a)

x < 0

b)

x > 1024

c)

y < 0

d)

y > 768

13.

Given a room resolution of 1024 x 768, which of the following expressions would return true if if the object has moved off the top of the room?

a)

x < 0

b)

x > 1024

c)

y < 0

d)

y > 768

14.

What feature of GameMaker Studio 2 controls the draw order of instances in a room?

a)

objects

b)

layers

c)

scripts

d)

events

15.

What is the purpose of a break statement?

a)

It exits the event.

b)

It stops the current instance's movement.

c)

It tells the switch statement to stop executing.

d)

It pauses the game.

16.

What can the switch statement be used to replace?

a)

a loop

b)

an if-else if-else statement

c)

swapping two variable's values

d)

the switch position of two instances

17.

What name is given to a value that can either be true or false?

a)

code

b)

abstract

c)

boolean

d)

logical operator

18.

What symbol is used for the AND operator?

a)

&&

b)

||

c)

|

d)

@@

19.

Which operator is used for the OR operator?

a)

&

b)

!!

c)

||

d)

&&

20.

What is used to represent the NOT operator?

a)

!

b)

!!

c)

&&

d)

||

21.
Why should a programmer add comment statements to their code?
a)
It makes the program run faster
b)
It makes the code easier to read and understand
c)
It means less variables are needed
d)
It means programs will run on both Macs and PCs
22.

Which of the following variables names is an example of camel case?

a)

totalScore

b)

TOTALSCORE

c)

total_score

d)

totalscore

23.
Once you finished your sprite the next stage is to make an __________ connected to your sprite
a)
event
b)
action
c)
object
d)
room
24.

To get your object to react to something, you must create

a)

a room

b)

a background

c)

an event

d)

a sprite

25.

What Programming Language does Game Maker use?

a)

C++

b)

Java

c)

GML

d)

Actionscript

26.

Which code would make an instance of the obj_car object move up?

a)

obj_car.x += 5;

b)

obj_car.x -= 5;

c)

obj_car.y += 5;

d)

obj_car.y -= 5;

27.

Which code would make an instance of the obj_car object move left?

a)

obj_car.x += 5;

b)

obj_car.x -= 5;

c)

obj_car.y += 5;

d)

obj_car.y -= 5;

28.

Angle - Here is a sprite as it was drawn (original position), what direction will it be facing after the below gets applied?


image_angle = 270;

a)

To the right (same position)

b)

Pointing up

c)

Pointing to the left

d)

Pointing down

29.

Which is the correct GML code for Game Maker Studio 2 to create an object instance (assuming the correct parameters are passed)?

a)

add_instance();

b)

create();

c)

instance_create();

d)

instance_create_layer();

30.

In an animated sprite, which frame is the first frame?

a)

0

b)

1

31.

With an animated sprite with 6 sub images/frames in all, how would you select the last image/frame?

a)

image_index = 6;

b)

image_index = 5;

32.

Which variable sets the rotation of the sprite and is measured in degrees (0 points to the right, 90 is up, and so forth)?

a)

image_angle

b)

speed

c)

direction

d)

image_rotation

33.

'Game levels' are called ....... in Gamemaker

a)

Places

b)

Rooms

c)

Levels

d)

Missions

34.

Which function will generate a random number between 50 and 970?

a)

Random(50, 970)

b)

Random_range(50, 970)

c)

irandom(50) to irandom(970)

d)

irandom_range(50, 970)

35.

PNG files are used to create .....

a)

Sprites

b)

Objects

c)

Players

d)

Rooms

36.

What are the coordinates for the upper right corner point of the room?

a)

(0, room_height)

b)

(0, room_width)

c)

(room_width, 0)

d)

(room_height, 0)

37.
Which of the sequences below are correct?
a)
Create sprite, create object, add event, and add action
b)
Create sprite, create sound, create  rooms and add actions
c)
Create sprite, create objects, create events, and put sprites into the room
d)
None of the above
38.
Define mechanics of a game?
a)
The amount of levels
b)
The complexity of the game
c)
If the game is fun
d)
How the game is played
39.

What follows the comment slashes to create the title of an event?

a)

@description

b)

@title

c)

@event.title

d)

@describe

40.

Button-click events should be added as

a)

Left-Pressed

b)

Left-Down

c)

Left-Click

d)

Mouse-Enter

41.

An IF statement is used to

a)

test a condition to make a decision

b)

test a condition to create a loop

c)

test a condition to end a loop

d)

test a condition to move to the next level

42.

Consider this code statement:

instance_create_layer(100, 200, "Instances", ball);


200 represents

a)

the x-value of the instance

b)

the y-value of the instance

c)

the maximum number of instances allowed

d)

the object ID of the instance

43.

Consider this code statement:

instance_create_layer(100, 200, "Instances", ball);


"Instances" represents

a)

the name of the instance to be created

b)

the name of the layer to create the instance on

c)

the name of the room to create the instance in

d)

the name of the layer to be created

44.

Consider this code statement:

instance_create_layer(100, 200, "Instances", ball);


ball represents

a)

the type of instance to be created

b)

the name of the sprite to be used

c)

the name of the room used

d)

the name of the layer to be used

45.

What does the built-in object, other, represent in collisions?

a)

a reference to the current instance ID

b)

the next event to be executed for the current instance

c)

the instance ID of the object with which this instance collided with

d)

the coordinate point of the location where the collision occurred

46.

What does this code do?

x++;

a)

add two to x;

b)

add one to x;

c)

set x = 1;

d)

this would cause an error