Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

RETURN VALUE

Total questions: 8

Worksheet time: 11mins

Name
Class
Date
1.

According to this level and it's code, what will the panda say at the end?

a)

1

b)

2

c)

3

d)

4

2.

Fix this line of code with WRONG syntax.

return.count

4 lines
3.

Fill in the blank.

count=collectAndCount()

say( (a)   )

4.

Use of "Return Value" method.

a)

To count the number of capsules in a curtain color in the level.

b)

To make the panda say something.

c)

To make counting more complicated.

d)

To count the number of capsules in the level.

5.

Write a line of code that has the variable "count" being involved with the Return Value method.

4 lines
6.

Is this code correct?

def collectAndCount():

forward(3)

count=collectAndCount

say(count)

a)

Yes

b)

No

7.

Fill in the blank.

*after you collect 1 capsule

count= (a)   +_

8.

Fill in the blank.

**the name of the function is collectAndCount

count= (a)