wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Creative Coding Review

Total questions: 40

Worksheet time: 13mins

Name
Class
Date
1.

In coding, random means

a)

predictable

b)

required

c)

unpredictable

d)

perfect

2.

What are the possible values of "x" in the line of code

x = random.randint ( -1,5)?

a)

-1 and 5

b)

-1,0,1,2,3,4,5

c)

-1, 0 and 5

d)

0,1,2,3,4

3.

Sprite placement on the stage game board is based on the

a)

top of the sprite

b)

bottom of the sprite

c)

center of the sprite

d)

randomly

4.

What is the random range for a digital game with a six-sided dice?

a)

(0, 7)

b)

(1, 6)

c)

(0, 6)

d)

(1, 7)

5.

Which line of code declares the variable y and initializes it's value to 23?

a)

var_y = 23

b)

var_23 = y

c)

var_name = 23y

d)

var = y = 23

6.

What is the object is this line of code?

turtle.move_forward (100)

a)

turtle

b)

(100)

c)

forward

d)

no object

7.

What is the function in this line of code? turtle.move_left (5)

a)

turtle

b)

(5)

c)

move_left

d)

no function

8.

What is the parameter in this line of code? spider.glide_to(-100, 50)

a)

spider

b)

glide_to

c)

(-100, 50)

d)

none

9.

Parameters must be a number.

a)

true

b)

false

10.

What is a fundamental building block for any computer program?

a)

object

b)

parameter

c)

variable

d)

function

11.

What describes objects in programming?

a)

variables

b)

parameters

c)

functions

d)

properties

12.

What is the parameter in this line of code? rabbit.turn_left(n)

a)

turn_left

b)

n

c)

rabbit

d)

The line does not have a parameter.

13.

Create a variable n and initialize it to 7.

a)

n = 7

b)

n = seven

c)

var = n7

d)

var=n=7

14.

What is a variable?

a)

a sprite

b)

a thing

c)

a drawn line

d)

a container for data

15.

What is a function?

a)

a command to perform a specific task

b)

a container for data

c)

an equation

d)

a variable type

16.

Which of the following is not an enhancement?

a)

a name

b)

a start screen

c)

an animation

d)

a moving background

17.

A type of variable that can be either true or false.

a)

Event

b)

Conditional

c)

Boolean

d)

Parameter

18.

Code used for making decisions...also called an if/then or if/then/else statement.

a)

Event

b)

Conditional

c)

Boolean

d)

Parameter

19.

Something that happens outside a program that the program responds to, such as a mouse click.

a)

Event

b)

Conditional

c)

Boolean

d)

Parameter

20.

What is the name for data that is passed to a function?

a)

Boolean

b)

Event

c)

Parameter

d)

Interval

21.

Term for the type of data that a variable can contain such as a number, string, and sprite.

a)

Input parameter

b)

Variable type

c)

Custom Function

d)

Interval

22.

A function created by the programmer that has a specific purpose and is used in many places.

a)

Input parameter

b)

Event

c)

Custom Function

d)

Conditional

23.

A particular method of reasoning or argumentation.

a)

Boolean operator

b)

Logic

c)

Local Variable

d)

Algorithm

24.

A variable that can only be used in the function it was declared in.

a)

Boolean

b)

Local variable

c)

Logic

d)

Global variable

25.

A variable that can be used throughout the entire script.

a)

Boolean operator

b)

Local variable

c)

Common variable

d)

Global variable

26.

Simple words (AND, OR, NOT or AND NOT) used as conjunctions to combine

a)

Boolean Operators

b)

Local variables

c)

Logic

d)

Global variables

27.

Instructions that a computer follows is called....

a)

Rule

b)

Computer Structure

c)

Computer Program

d)

Processing Cycle

28.

The categories of action, adventure, role-play, simulation and strategy games are called...?

a)

rules

b)

scripts

c)

genres

d)

algorithms

29.

What is a repeatable process in computer programming?

a)

a rule

b)

an algorithm

c)

a script

d)

a block of code

30.

Why should you comment when writing code?

a)

Comments are required for the program to run.

b)

Comments are used for feedback.

c)

Comments declare variables.

d)

Comments allow room to write notes and instructions

31.

Attributes or characteristics of objects in coding are referred to as .....

a)

properties

b)

variables

c)

functions

d)

parameters

32.

Which is not an event?

a)

a screen tap

b)

a mouse click

c)

a collision

d)

a key stroke

33.

Why does a conditional statement have an else clause?

a)

To determine what to do for a false result

b)

To determine what to do for a true result

c)

To determine what to do for a repeated result.

d)

To determine what to do for a random result

34.

What is the center point of a game board 800 pixels wide by 400 pixels tall?

a)

(200, 400)

b)

(400, 200)

c)

(500, 300)

d)

(300, 500)

35.

On a computer game board coordinate system, (0, 0) starts in which section of the screen?

a)

Middle

b)

Top left

c)

Top middle

d)

Bottom middle

36.

What is the process of creating a sprite that is in motion?

a)

Acceleration

b)

Gravity

c)

Sprite sheet

d)

Animation

37.

What is a script that is made up of one or more pages and can be navigated with buttons?

a)

a function

b)

a library

c)

an app

d)

a game

38.

Which statements best describe the relationship between apps and games?

a)

Apps use frames, games use pages.

b)

Apps use pages, games use frames

c)

Apps are not coded with programming language

d)

There is no difference

39.

A variable type that contains quotation marks.

a)

Comment

b)

String

c)

Equation

d)

Number

40.

The first number in this coordinate refers to what axis?

(100, 200)

a)

x coordinate

b)

y coordinate

c)

z coordinate

d)

horizontal coordinate