wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Coding

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following operators is NOT used to compare values?

a)

==

b)

<

c)

>

d)

%

2.

In computer programming, index starts from

a)

0

b)

1

c)

2

d)

3

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

a)

and

b)

or

c)

not

d)

all of the above

4.

If the condition is met(the answer is yes), then the code inside the if statement is executed.

a)

Plagiarism

b)

Conditional statement

c)

Loop statement

d)

Return statement

5.

Which function returns the distance between the monkey and an object.

a)

turnTo

b)

distanceTo

c)

watching

d)

sleeping

6.

Which function returns yes or no, depending if the cat/tiger/bear is sleeping/playing or not

a)

sleeping/kicking

b)

health()/sleeping

c)

sleeping()/playing()

d)

jumping/playing

7.

The event function(event handler) that is triggered any time a key is pressed on the keyboard is

a)

onMouseMove

b)

Onkey

c)

Onclick

d)

If key

8.

The syntax to define the onMouseMove function is:

a)

onMouseMove = () ->

b)

MouseMove = (pos) ->

c)

onMouseMove=(pos) ->

d)

onMouseMove (pos)= ->

9.

In Coding Adventure, the mouse movement event is mainly used to move the ______

a)

monkey

b)

cursor

c)

banana

d)

bat

10.

The type of loop used to repeat instruction for specific number of times.

a)

until loop

b)

for loop

c)

while loop

d)

nested loop