NEW
Font size
WorksheetsCoding
Total questions: 10
Worksheet time: 5mins
Which of the following operators is NOT used to compare values?
==
<
>
%
In computer programming, index starts from
0
1
2
3
If you want to change the result of a condition "yes" to "no" and "no" to "yes", you need to use the Boolean operator called
and
or
not
all of the above
If the condition is met(the answer is yes), then the code inside the if statement is executed.
Plagiarism
Conditional statement
Loop statement
Return statement
Which function returns the distance between the monkey and an object.
turnTo
distanceTo
watching
sleeping
Which function returns yes or no, depending if the cat/tiger/bear is sleeping/playing or not
sleeping/kicking
health()/sleeping
sleeping()/playing()
jumping/playing
The event function(event handler) that is triggered any time a key is pressed on the keyboard is
onMouseMove
Onkey
Onclick
If key
The syntax to define the onMouseMove function is:
onMouseMove = () ->
MouseMove = (pos) ->
onMouseMove=(pos) ->
onMouseMove (pos)= ->
In Coding Adventure, the mouse movement event is mainly used to move the ______
monkey
cursor
banana
bat
The type of loop used to repeat instruction for specific number of times.
until loop
for loop
while loop
nested loop
