wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Coding Adventure III Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does the Boolean operator 'not' do?

a)

Returns a value for further use

b)

Compares two values

c)

Reverses the result of a condition

d)

Triggers actions based on user input

2.

Which operator checks if two values are equal?

a)

not

b)

==

c)

>

d)

<

3.

What is the purpose of comparison operators?

a)

To trigger events

b)

To compare values

c)

To return values

d)

To define functions

4.

What does the function 'health()' return?

a)

If the banana is rotten

b)

Whether the monkey is near an object

c)

The monkey's health

d)

The distance to an object

5.

Which event is triggered when a key is pressed?

a)

onKey

b)

onClick

c)

onHover

d)

onMouseMove

6.

What does the operator '<' do?

a)

Checks if the left value is greater than the right

b)

Checks if two values are equal

c)

Checks if the left value is less than the right

d)

Reverses a condition

7.

What is the function of 'onMouseMove'?

a)

Triggered when the mouse is clicked

b)

Triggered when the mouse is moved

c)

Triggered when a key is pressed

d)

Triggered when the game starts

8.

Which function returns 'yes' or 'no' based on the monkey's proximity to an object?

a)

distanceTo

b)

near

c)

health

d)

frozen

9.

What does the 'onClick' function do?

a)

Checks health status

b)

Handles mouse movement

c)

Moves the character

d)

Handles mouse click events

10.

What is the main application of functions with return?

a)

To compare values

b)

To trigger events

c)

To determine game actions based on returned values

d)

To reverse conditions