WorksheetsCS Academy Unit 3 Review
Total questions: 10
Worksheet time: 5mins
Which of the following mouse events have we not learned?
onMouseRelease
onMouseMove
onDragRelease
onMouseDrag
Which of the following is not a valid test to use in a conditional?
x >= y
x <= y
x = y
x != y
Which of the following functions gets called every time we move the mouse?
onMouseMove
onMousePress
onMouseRelease
onMouseDrag
How many stars will this code draw?
0
1
2
3
Which of the following tests will be true given x is 20?
x != 20
x > 25
x < 25
x == 25
Which function will be called?
f(x)
g(x)
Both
Neither
How many times will f(x) be called when x = 25?
1
2
3
4
Which of the following tests would be false if y is 4?
y > 3
y <= 3
y >= 2
y == 4
Which of the following is false about helper functions?
They are used to help another function perform its work
Helper functions can be called from event functions
Helper functions can use other function’s parameters
None of the above
Which of the following is drawn if the mouse is being pressed and moved across the canvas?
Teal stars
Labels that say ‘Hi’
Both teal stars and labels that say ‘Hi’
Nothing
