NEW
Font size
WorksheetsCoding Adventure III Quiz
Total questions: 10
Worksheet time: 5mins
What does the Boolean operator 'not' do?
Returns a value for further use
Compares two values
Reverses the result of a condition
Triggers actions based on user input
Which operator checks if two values are equal?
not
==
>
<
What is the purpose of comparison operators?
To trigger events
To compare values
To return values
To define functions
What does the function 'health()' return?
If the banana is rotten
Whether the monkey is near an object
The monkey's health
The distance to an object
Which event is triggered when a key is pressed?
onKey
onClick
onHover
onMouseMove
What does the operator '<' do?
Checks if the left value is greater than the right
Checks if two values are equal
Checks if the left value is less than the right
Reverses a condition
What is the function of 'onMouseMove'?
Triggered when the mouse is clicked
Triggered when the mouse is moved
Triggered when a key is pressed
Triggered when the game starts
Which function returns 'yes' or 'no' based on the monkey's proximity to an object?
distanceTo
near
health
frozen
What does the 'onClick' function do?
Checks health status
Handles mouse movement
Moves the character
Handles mouse click events
What is the main application of functions with return?
To compare values
To trigger events
To determine game actions based on returned values
To reverse conditions
