NEW
Font size
WorksheetsCreative Coding Review
Total questions: 40
Worksheet time: 13mins
In coding, random means
predictable
required
unpredictable
perfect
What are the possible values of "x" in the line of code
x = random.randint ( -1,5)?
-1 and 5
-1,0,1,2,3,4,5
-1, 0 and 5
0,1,2,3,4
Sprite placement on the stage game board is based on the
top of the sprite
bottom of the sprite
center of the sprite
randomly
What is the random range for a digital game with a six-sided dice?
(0, 7)
(1, 6)
(0, 6)
(1, 7)
Which line of code declares the variable y and initializes it's value to 23?
var_y = 23
var_23 = y
var_name = 23y
var = y = 23
What is the object is this line of code?
turtle.move_forward (100)
turtle
(100)
forward
no object
What is the function in this line of code? turtle.move_left (5)
turtle
(5)
move_left
no function
What is the parameter in this line of code? spider.glide_to(-100, 50)
spider
glide_to
(-100, 50)
none
Parameters must be a number.
true
false
What is a fundamental building block for any computer program?
object
parameter
variable
function
What describes objects in programming?
variables
parameters
functions
properties
What is the parameter in this line of code? rabbit.turn_left(n)
turn_left
n
rabbit
The line does not have a parameter.
Create a variable n and initialize it to 7.
n = 7
n = seven
var = n7
var=n=7
What is a variable?
a sprite
a thing
a drawn line
a container for data
What is a function?
a command to perform a specific task
a container for data
an equation
a variable type
Which of the following is not an enhancement?
a name
a start screen
an animation
a moving background
A type of variable that can be either true or false.
Event
Conditional
Boolean
Parameter
Code used for making decisions...also called an if/then or if/then/else statement.
Event
Conditional
Boolean
Parameter
Something that happens outside a program that the program responds to, such as a mouse click.
Event
Conditional
Boolean
Parameter
What is the name for data that is passed to a function?
Boolean
Event
Parameter
Interval
Term for the type of data that a variable can contain such as a number, string, and sprite.
Input parameter
Variable type
Custom Function
Interval
A function created by the programmer that has a specific purpose and is used in many places.
Input parameter
Event
Custom Function
Conditional
A particular method of reasoning or argumentation.
Boolean operator
Logic
Local Variable
Algorithm
A variable that can only be used in the function it was declared in.
Boolean
Local variable
Logic
Global variable
A variable that can be used throughout the entire script.
Boolean operator
Local variable
Common variable
Global variable
Simple words (AND, OR, NOT or AND NOT) used as conjunctions to combine
Boolean Operators
Local variables
Logic
Global variables
Instructions that a computer follows is called....
Rule
Computer Structure
Computer Program
Processing Cycle
The categories of action, adventure, role-play, simulation and strategy games are called...?
rules
scripts
genres
algorithms
What is a repeatable process in computer programming?
a rule
an algorithm
a script
a block of code
Why should you comment when writing code?
Comments are required for the program to run.
Comments are used for feedback.
Comments declare variables.
Comments allow room to write notes and instructions
Attributes or characteristics of objects in coding are referred to as .....
properties
variables
functions
parameters
Which is not an event?
a screen tap
a mouse click
a collision
a key stroke
Why does a conditional statement have an else clause?
To determine what to do for a false result
To determine what to do for a true result
To determine what to do for a repeated result.
To determine what to do for a random result
What is the center point of a game board 800 pixels wide by 400 pixels tall?
(200, 400)
(400, 200)
(500, 300)
(300, 500)
On a computer game board coordinate system, (0, 0) starts in which section of the screen?
Middle
Top left
Top middle
Bottom middle
What is the process of creating a sprite that is in motion?
Acceleration
Gravity
Sprite sheet
Animation
What is a script that is made up of one or more pages and can be navigated with buttons?
a function
a library
an app
a game
Which statements best describe the relationship between apps and games?
Apps use frames, games use pages.
Apps use pages, games use frames
Apps are not coded with programming language
There is no difference
A variable type that contains quotation marks.
Comment
String
Equation
Number
The first number in this coordinate refers to what axis?
(100, 200)
x coordinate
y coordinate
z coordinate
horizontal coordinate
