wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2D Game Design Review

Total questions: 70

Worksheet time: 1hrs 7mins

Name
Class
Date
1.

A set of instructions that tells a computer what to do to accomplish a particular task is called:

a)

software

b)

an application.

c)

a computer program.

d)

programming language.

2.

The set of rules that must be followed when writing program instructions for a specific programming language is called:

a)

executing

b)

machine language.

c)

binary.

d)

syntax

3.

When a computer is performing the instructions contained in a program, it is called:

a)

compiling

b)

debugging

c)

executing

d)

assembling

4.
Abstraction
a)
a simplified representation of something more complex; allows you to hide details to help you manage complexity, focus on relevant concepts, and reason about problems at a higher level.
b)
An extra piece of information that you pass to the function to customize it for a specific need.
c)
a classic method for learning programming with commands to control movement and drawing of an on-screen robot
d)
Application Program Interface: a collection of commands made available to a programmer
e)
Putting commands in correct order so computers can read the commands.
5.
Algorithm
a)
A precise sequence of instructions for processes that can be executed by a computer
b)
To repeat in order to achieve, or get closer to, a desired goal.
c)
Application Program Interface: a collection of commands made available to a programmer
d)
Putting commands in correct order so computers can read the commands.
e)
Repeating actions that have a predetermined beginning, end, and increment (step interval)
6.
Documentation
a)
a description of the behavior of a command, function, library, API, etc.
b)
pieces of code that you use to solve a problem.
c)
a collection of commands / functions, typically with a shared purpose
d)
To repeat in order to achieve, or get closer to, a desired goal.
e)
A base-16 number system that uses sixteen distinct symbols 0-9 and A-F to represent numbers from 0 to 15.
7.
For Loop
a)
Repeating actions that have a predetermined beginning, end, and increment (step interval)
b)
a named group of programming instructions; reusable abstractions that reduce the complexity of writing and maintaining programs
c)
A base-16 number system that uses sixteen distinct symbols 0-9 and A-F to represent numbers from 0 to 15.
d)
A precise sequence of instructions for processes that can be executed by a computer
e)
Application Program Interface: a collection of commands made available to a programmer
8.
Function
a)
a named group of programming instructions; reusable abstractions that reduce the complexity of writing and maintaining programs
b)
Repeating actions that have a predetermined beginning, end, and increment (step interval)
c)
To repeat in order to achieve, or get closer to, a desired goal.
d)
parts of a problem's solution (the overall goal); helps you focus on figuring out which block(s) you need rather than trying to solve the whole problem at once.
e)
a description of the behavior of a command, function, library, API, etc.
9.
Iterate
a)
To repeat in order to achieve, or get closer to, a desired goal.
b)
aka "stepwise design", a problem solving approach in which you break down a system to gain insight into the sub-systems that make it up.
c)
parts of a problem's solution (the overall goal); helps you focus on figuring out which block(s) you need rather than trying to solve the whole problem at once.
d)
Repeating actions that have a predetermined beginning, end, and increment (step interval)
e)
A programming language with many commands and features designed to make common tasks easier to program; encapsulated as combinations of low level commands.
10.
Loop
a)
The action of doing something over and over again.
b)
the optimal time a program takes to run on a computer, the optimal time or number of people required to create, the optimal number of resources required to run, etc
c)
A programming language with many commands and features designed to make common tasks easier to program; encapsulated as combinations of low level commands.
d)
a named group of programming instructions; reusable abstractions that reduce the complexity of writing and maintaining programs
e)
a collection of commands / functions, typically with a shared purpose
11.
Parameter
a)
An extra piece of information that you pass to the function to customize it for a specific need.
b)
Putting commands in correct order so computers can read the commands.
c)
pieces of code that you use to solve a problem.
d)
a description of the behavior of a command, function, library, API, etc.
e)
parts of a problem's solution (the overall goal); helps you focus on figuring out which block(s) you need rather than trying to solve the whole problem at once.
12.
Sequencing
a)
Putting commands in correct order so computers can read the commands.
b)
A programming language with many commands and features designed to make common tasks easier to program; encapsulated as combinations of low level commands.
c)
aka "stepwise design", a problem solving approach in which you break down a system to gain insight into the sub-systems that make it up.
d)
An extra piece of information that you pass to the function to customize it for a specific need.
e)
a simplified representation of something more complex; allows you to hide details to help you manage complexity, focus on relevant concepts, and reason about problems at a higher level.
13.

Click ALL answers which result in an "X" printed.

a)

a = 3, b = 3, c = 3

b)

a = 5, b = 4, c = 7

c)

a = 1, b = 3, c = 5

d)

a = 6, b = 4, c = 3

e)

a = 5, b = 5, c = 3

14.

What is output?

a)

Jackson

b)

Memorial

c)

JacksonMemorial

d)

There is no ouptut

15.

Which of the following conditional statements is executed?

a)

The if statement

if (z == 3) { ... }

b)

The else if statement

else if (z < 5) { ... }

c)

The else statement

else { ... }

d)

None of them

16.

What will be the value of after this set of conditional statements?

a += 2; means a = a + 2;

a += 3; means a = a + 3;

a)

7

b)

9

c)

10

d)

4

17.

Which of these is the correct format for an "if/else" statement?

a)
b)
c)
d)
18.

Which of these is the proper format of an "else/if" chain statement?

a)
b)
c)
19.

Which of the following includes the correct syntax for a for loop?

a)

for(int i = 0, i<10, i++)

b)

for(int i =0, run = 10)

c)

for(int i = 0; run = 10)

d)

for(int i = 0; i < 10; i++)

20.

for(int i; i<10; i++) {} Why won’t this code segment run?

a)

There is a missing semicolon at the end.

b)

For should be capitalized

c)

The person did not set the beginning value of i.

d)

The person did not set the ending value of i.

21.

Loop

a)

Loops that have a predetermined beginning, end, and increment (step interval).

b)

The action of doing something over and over again.

c)

A description of the behavior of a command, function, library, API, etc.

d)

To repeat in order to achieve, or get closer to, a desired goal.

22.

Name the data type: false

a)

String

b)

boolean

c)

int

d)

None of the above

23.

What data type would you use for storing the number of students in a class?

a)

boolean

b)

String

c)

double

d)

int

24.

What data type would you use to store names of students?

a)

String

b)

char

c)

boolean

d)

None of these

25.

How would you declare a variable that tells you that someone passed a class?

a)

boolean passed = 'true';

b)

boolean passed = true;

c)

passed = true;

d)

String passed = "true";

26.

Which declaration will throw an error?

a)

double num = 8;

b)

int averageGrade = 89.7;

c)

boolean done = false;

d)

String done = "true";

27.

The process of breaking down your code into smaller parts (more functions)

a)

Decomposition

b)

Indentation

c)

lowerCamelCase

d)

Start Function

28.

The visual structure of how your code is laid out. Using tabs to organize code into a hierarchy.

a)

JavaScript

b)

Indentation

c)

Start Function

d)

Algorithm

29.

Teaching the computer a new command. Used to explain what a program should do when receiving that command.

a)

Defining a Function

b)

Calling a Function

c)

Start Function

d)

Readability

30.

_______ a function actually gives the command, so the computer will run the code for that function.

a)

Debugging

b)

Indenting

c)

Defining

d)

Calling

31.

A message in your code that explains what is going on -- not apart of the executing of the program.

a)

Decomposition

b)

Comment

c)

Condition

d)

Control Structure

32.

Choose TWO: Ways (using syntax) that you can write comments?

a)

multi-line

/*

*

*/

b)

single line

//

c)

multi-line

**

d)

single line

##

33.

What defines a sprite in a game context?

a)

A sprite is a still image used for background decoration in a game.

b)

A sprite is any object in a game that lacks characteristics but has behaviors.

c)

A sprite is any object in a game that has characteristics and behaviors.

d)

A sprite is a dynamic element in a game that only has characteristics but no behaviors.

34.

Which is these could be a sprite?

a)

A player character

b)

An enemy character

c)

An object in the game you interact with

d)

All of the above

35.

Should you rename your sprites, instead of keeping them named "mySprite" or "mySprite2"?

a)

Yes, because descriptive names help you keep track of them in your code, creating organization and clarity

b)

No, because the names given to them are fine and make programming clearer

c)

Yes, because descriptive names enhances the visual appeal of the actual game

d)

No, because the given names simplify the debugging process

36.

What is an event handler in programming?

a)

A function that is executed at the start of the program.

b)

Code that only runs when a specific event happens.

c)

A variable that stores the state of the program.

d)

A loop that runs continuously throughout the program.

37.

What do all event handlers start with?

a)

The word "in"

b)

The word "of"

c)

The word "on"

d)

The word "under"

38.

What is one of the functions of event handlers in programming?

a)

Calculate mathematical equations

b)

Detect collisions

c)

Create new files

d)

Change the color of the screen

39.

What does an "on button" event handler do?

a)

It automatically presses a button for the player.

b)

It runs code when a player interacts with a button.

c)

It charges the controller's battery.

d)

It creates a new button on the controller.

40.

How many event handlers can exist for a given button and action?

a)

As many as you want.

b)

Only two event handlers.

c)

Only one event handler.

d)

No event handlers are allowed.

41.

What is a variable in computer programming?

a)

A) A function that performs an action

b)

B) A named location in memory

c)

C) A type of computer hardware

d)

D) A command that executes a program

42.

What is memory often conceptualized as in computer science?

a)

A processor that executes commands.

b)

A storage device like a hard drive.

c)

A place where we store information.

d)

A tool for managing computer operations.

43.

Why do we use variable names in computer programs?

a)

To increase the speed of the program

b)

To make the code look more complex

c)

To avoid confusion

d)

To reduce the amount of memory used by the program

44.

What is the purpose of variables in programming?

a)

To create new programs from scratch

b)

To store user input only

c)

To help keep track of information that we need to reference at some point in our program

d)

To change the behavior of the program randomly

45.

Which of the following is an example of a string value assigned to a variable in the image?

a)

7

b)

"Yellow Whirled"

c)

true

d)

myString

46.

Which of the following is an example of a number value assigned to a variable in the image?

a)

7

b)

"Yellow Whirled"

c)

true

d)

myString

47.

What variable is set to a Boolean expression?

a)

myNumber

b)

myString

c)

myLogic

d)

myArray

48.

What are conditions?

a)

Functions that perform a specific task

b)

Expressions that evaluate to true or false

c)

Loops that execute a block of code multiple times

d)

Variables that store text or numbers

49.

How many possible values can a condition have at any time?

a)

One

b)

Two

c)

Multiple

d)

Infinite

50.

What does a conditional statement do?

a)

It performs an action regardless of any conditions.

b)

It checks the value of a variable or expression and acts only if that check is true.

c)

It calculates the sum of two numbers.

d)

It sends an email automatically.

51.

Which of the following is an example of a real-world conditional statement?

a)

If you are hungry, then you eat food.

b)

If the sky is blue, then it is always daytime.

c)

If water is cold, then it must be boiling.

d)

If a car is red, then it goes faster.

52.

What is an array?

a)

An array is a variable that can store only one value, referenced by a unique identifier.

b)

An array is a variable that can store more than one value, with each value referenced by an index.

c)

An array is a variable that can dynamically change its size based on the number of values it contains.

d)

An array is a variable that can store values in a sequence without requiring any indexing.

53.

A runtime error

a)

is when the program is coded correctly, but an error occurs because of a problem while the program is being executed (not because of a mistake in the code)

b)

is when incorrect words or punctuation is used, or when correct words and punctuation are used in the wrong order

c)

is when the stars don't line up properly and a cosmic ray changes a true value to a false value

d)

is when the program is coded incorrectly to produce an incorrect result, but with correct statements. The only way to know there was an error is to notice that the result is wrong

54.

A logic error

a)

is when the program is coded correctly, but an error occurs because of a problem while the program is being executed (not because of a mistake in the code)

b)

is when incorrect words or punctuation is used, or when correct words and punctuation are used in the wrong order

c)

is when the stars don't line up properly and a cosmic ray changes a true value to a false value

d)

is when the program is coded incorrectly to produce an incorrect result, but with correct statements. The only way to know there was an error is to notice that the result is wrong

55.

Information with values that don’t change during a program is called a...

a)

Algorithm

b)

Constant

c)

Loop

d)

Variable

56.

Which of these is NOT a type of variable

a)

Sprite

b)

Number

c)

Array

d)

Conditional

57.

Pseudocode is

a)

fake code

b)

incorrect code

c)

code written in sentence form

d)

code written in Javascript only

58.

In this picture "on start" is...

a)

a variable

b)

an input

c)

a sprite

d)

a loop

59.

In this image "play melody" is...

a)

an input

b)

an output

c)

a sprite

d)

a loop

60.

In this image, "repeat" is...

a)

a conditional

b)

a loop

c)

an input

d)

a variable

61.

In this image "hand" is...

a)

a variable

b)

a sprite

c)

an output

d)

an input

62.

The teams on this scoreboard are...

a)

constants

b)

variables

c)

neither

d)

both

63.

The time on this scoreboard is...

a)

Constant

b)

Variable

c)

Neither

d)

Both

64.

Which block is the conditional?

a)

On Shake

b)

Set Hand

c)

If "true" then

65.

Which of the following best describes a loop in programming?

a)

A function that never returns a value.

b)

A variable that stores text values.

c)

A set of instructions that repeats until a condition is met.

d)

A command that runs only once.

66.

What is the main purpose of using variables in a program?

a)

To store and manipulate data during program execution.

b)

To repeat a set of instructions.

c)

To define the syntax of a language.

d)

To create user interfaces.

67.

Which statement about conditional statements is correct?

a)

They allow a program to make decisions based on certain conditions.

b)

They are used only for mathematical calculations.

c)

They store information in memory.

d)

They are used to define new data types.

68.

Which of the following is a valid example of a condition in programming?

a)

x > 10

b)

print("Hello World")

c)

for(int i = 0; i < 5; i++)

d)

int number = 5;

69.

What will happen if a condition in an if statement evaluates to false?

a)

An error will occur.

b)

The program will stop running.

c)

The code inside the if block will be skipped.

d)

The code inside the if block will run.

70.

Which data type is most commonly used to represent the result of a condition?

a)

Double

b)

Boolean

c)

String

d)

Integer