WorksheetsRock Paper Scissor
Total questions: 7
Worksheet time: 3mins
What is the purpose of the variable RPS in this program?
To store the brightness of the LEDs
To choose a random option between rock, paper, and scissors
To detect which button is pressed
To control how long the pause lasts
When does the code inside the main block run?
When the device starts
When the logo is touched
When button A is pressed
Continuously in a forever loop
What happens immediately after setting RPS to a random number between 1 and 3?
LEDs are cleared
A picture is shown
A random pause between 1079 ms and 2079 ms
The program stops
What does the program display if RPS = 1?
A rock pattern
A paper pattern
A scissors pattern
A blank screen
What is the function of the block under on logo pressed?
Show rock
Restart the whole program
Clear the LED screen
Display a random pattern
How many different images can the program display?
What programming structure is used to choose which image to display?
Loop
Boolean logic
If-else chain
