pxt-calliope/docs/lessons/bop-it/quiz.md

39 lines
1.2 KiB
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# bop it quiz
2016-04-02 01:22:47 +02:00
a game where you have to keep up with the commands.
2016-03-26 00:47:20 +01:00
## Name
## Directions
2016-04-13 17:27:45 +02:00
Use this activity document to guide your work in the [bop it tutorial](/lessons/bop-it/tutorial).
2016-03-26 00:47:20 +01:00
Answer the questions while completing the tutorial. Pay attention to the dialogues!
2016-04-13 22:02:22 +02:00
### 1. Write the code that will store the global variable named 'action' and returns a random number between 0 and 2
2016-03-26 00:47:20 +01:00
<br/>
2016-04-13 22:02:22 +02:00
### 2. Write the code that will display the string, "PUSH A" if the global variable called 'action' is equal to 0
2016-03-26 00:47:20 +01:00
<br />
2016-04-13 22:02:22 +02:00
### 3. Write the code that increments the score if button A is pressed when the global variable called 'action' is equal to 1
2016-03-26 00:47:20 +01:00
<br />
2016-04-13 22:02:22 +02:00
### 4. Write the code that will display the string "LOGO DOWN" if the global variable called 'action' is equal to 1
2016-03-26 00:47:20 +01:00
<br />
2016-04-13 22:02:22 +02:00
### 5. Write the code that increments the score if the BBC micro:bit logo is tilted down when the global variable called 'action' is equal to 1
2016-03-26 00:47:20 +01:00
<br />
2016-04-13 22:02:22 +02:00
### 6. Write the code that will display the string "SHAKE" if the global variable called 'action' is equal to 2
2016-03-26 00:47:20 +01:00
<br />
2016-04-13 22:02:22 +02:00
### 7. Write the code that increments the score if the BBC micro:bit is shaken when the global variable called 'action' is equal to 2
2016-03-26 00:47:20 +01:00