wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CS 2.01-2.05 Review

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

What is an operator?

a)

a symbol that manipulates data

b)

a variable

c)

a function

d)

ONLY +, - , / , *

2.

What does the += operator do?

a)

adds 1

b)

adds whatever number that is to the right of the equal sign to the variable

c)

subtracts a number

3.

What symbol indicates an array?

a)

( )

b)

;

c)

[ ]

4.

The first item in an array is indicated by what number?

a)

1

b)

0

c)

10

5.

How do we access an item in an array?

a)

accessing its index

b)

picking a random number

c)

putting in the number 0

6.

What makes single line comments?

a)

//

b)

*/

c)

/*

d)

**

7.

What is the keyword to initiate a loop?

a)

repeat

b)

loop

c)

move

d)

draw

8.

You do not know this yes but...

What do you think the answer is to this equation: 12%9

a)

3

b)

9

c)

12

d)

1.333

9.

To make a very specific color, you can use a...

a)

hexcode

b)

the draw tool

c)

random numbers

d)

You cannot make specific colors

10.

What library is random in?

a)

Colors

b)

Math

c)

functions

d)

variables

11.

What does Math.random()*87 do?

a)

Picks a random number between 0 and 87

b)

Picks a random number between 0 and 100

c)

Picks a random number between 0 and 1

d)

Picks a random number between 0 and infinity

12.

What does the last number in a loop represent?

a)

the height

b)

the x position

c)

The frame interval

d)

the change

13.

The higher the frame interval, the __________ the loop

a)

faster

b)

slower

14.

True or false:

This can be accepted to increase your x value by 2 every time:

legs.x+2;

a)

True

b)

False