WorksheetsCoding is fun
Total questions: 9
Worksheet time: 1hrs 23mins
Exercise #1: How many LED lights are turned on?
5
7
9
11
Exercise #1: What is the colour of the LED lights?
Blue
White
Cyan
Orange
Exercise #1: How long does it take for the light to complete one "on and off" circle?
1 sec
1.5 sec
2 sec
3 sec
Exercise #2: What colour do you see?
White
Yellow
Blue
Magenta
Exercise #3: What do you see after running the code?
All LED lights inside the button are flashing green light.
The LED take turns to blink green light clockwise.
The LED take turns to blink red light anti-clockwise.
The LED take turns to blink blue light clockwise.
Exercise #3: At the end of each loop, what is the value of "led"?
1
5
7
11
Exercise #4: After running the code. Press button 2, then press button 4. What colour do you see?
Yellow
Blue
White
Magenta
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; }
0
50
250
300
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?
2
4
6
8
