Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Rock Paper Scissor

Total questions: 7

Worksheet time: 3mins

Name
Class
Date
1.

What is the purpose of the variable RPS in this program?

a)

To store the brightness of the LEDs

b)

To choose a random option between rock, paper, and scissors

c)

To detect which button is pressed

d)

To control how long the pause lasts

2.

When does the code inside the main block run?

a)

When the device starts

b)

When the logo is touched

c)

When button A is pressed

d)

Continuously in a forever loop

3.

What happens immediately after setting RPS to a random number between 1 and 3?

a)

LEDs are cleared

b)

A picture is shown

c)

A random pause between 1079 ms and 2079 ms

d)

The program stops

4.

What does the program display if RPS = 1?

a)

A rock pattern

b)

A paper pattern

c)

A scissors pattern

d)

A blank screen

5.

What is the function of the block under on logo pressed?

a)

Show rock

b)

Restart the whole program

c)

Clear the LED screen

d)

Display a random pattern

6.

How many different images can the program display?

4 lines
7.

What programming structure is used to choose which image to display?

a)

Loop

b)

Boolean logic

c)

If-else chain