Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Coding is fun

Total questions: 9

Worksheet time: 1hrs 23mins

Name
Class
Date
1.

Exercise #1: How many LED lights are turned on?

a)

5

b)

7

c)

9

d)

11

2.

Exercise #1: What is the colour of the LED lights?

a)

Blue

b)

White

c)

Cyan

d)

Orange

3.

Exercise #1: How long does it take for the light to complete one "on and off" circle?

a)

1 sec

b)

1.5 sec

c)

2 sec

d)

3 sec

4.

Exercise #2: What colour do you see?

a)

White

b)

Yellow

c)

Blue

d)

Magenta

5.

Exercise #3: What do you see after running the code?

a)

All LED lights inside the button are flashing green light.

b)

The LED take turns to blink green light clockwise.

c)

The LED take turns to blink red light anti-clockwise.

d)

The LED take turns to blink blue light clockwise.

6.

Exercise #3: At the end of each loop, what is the value of "led"?

a)

1

b)

5

c)

7

d)

11

7.

Exercise #4: After running the code. Press button 2, then press button 4. What colour do you see?

a)

Yellow

b)

Blue

c)

White

d)

Magenta

8.

Exercise #4: When the value of r is 250, after running the following code, what is the value of r?

{ r += 50;

if (r > 255) r = 0; }

a)

0

b)

50

c)

250

d)

300

9.

Exercise #5: When you press button 4, and pointing the button 3 down towards the floor (as shown in the pic).

How many LED lights are on?

a)

2

b)

4

c)

6

d)

8