Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CS Academy Unit 3 Review

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following mouse events have we not learned?

a)

onMouseRelease

b)

onMouseMove

c)

onDragRelease

d)

onMouseDrag

2.

Which of the following is not a valid test to use in a conditional?

a)

x >= y

b)

x <= y

c)

x = y

d)

x != y

3.

Which of the following functions gets called every time we move the mouse?

a)

onMouseMove

b)

onMousePress

c)

onMouseRelease

d)

onMouseDrag

4.

How many stars will this code draw?

a)

0

b)

1

c)

2

d)

3

5.

Which of the following tests will be true given x is 20?

a)

x != 20

b)

x > 25

c)

x < 25

d)

x == 25

6.

Which function will be called?

a)

f(x)

b)

g(x)

c)

Both

d)

Neither

7.

How many times will f(x) be called when x = 25?

a)

1

b)

2

c)

3

d)

4

8.

Which of the following tests would be false if y is 4?

a)

y > 3

b)

y <= 3

c)

y >= 2

d)

y == 4

9.

Which of the following is false about helper functions?

a)

They are used to help another function perform its work

b)

Helper functions can be called from event functions

c)

Helper functions can use other function’s parameters

d)

None of the above

10.

Which of the following is drawn if the mouse is being pressed and moved across the canvas?

a)

Teal stars

b)

Labels that say ‘Hi’

c)

Both teal stars and labels that say ‘Hi’

d)

Nothing