NEW
Font size
WorksheetsCS 2.01-2.05 Review
Total questions: 14
Worksheet time: 7mins
What is an operator?
a symbol that manipulates data
a variable
a function
ONLY +, - , / , *
What does the += operator do?
adds 1
adds whatever number that is to the right of the equal sign to the variable
subtracts a number
What symbol indicates an array?
( )
;
[ ]
The first item in an array is indicated by what number?
1
0
10
How do we access an item in an array?
accessing its index
picking a random number
putting in the number 0
What makes single line comments?
//
*/
/*
**
What is the keyword to initiate a loop?
repeat
loop
move
draw
You do not know this yes but...
What do you think the answer is to this equation: 12%9
3
9
12
1.333
To make a very specific color, you can use a...
hexcode
the draw tool
random numbers
You cannot make specific colors
What library is random in?
Colors
Math
functions
variables
What does Math.random()*87 do?
Picks a random number between 0 and 87
Picks a random number between 0 and 100
Picks a random number between 0 and 1
Picks a random number between 0 and infinity
What does the last number in a loop represent?
the height
the x position
The frame interval
the change
The higher the frame interval, the __________ the loop
faster
slower
True or false:
This can be accepted to increase your x value by 2 every time:
legs.x+2;
True
False
