pxt-calliope/docs/lessons/offset-image/quiz.md

37 lines
807 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# offset image quiz
2016-04-02 01:22:47 +02:00
shift an image horizontally across the display with offset.
2016-03-26 00:47:20 +01:00
## Name
## Directions
2016-04-16 00:02:26 +02:00
Use this activity document to guide your work in the [offset image activity](/lessons/offset-image/activity).
2016-03-26 00:47:20 +01:00
Answer the questions while completing the tutorial. Pay attention to the dialogues!
## 1. What is an 'if, then, else statement' ?
<br/>
## 2. Write the line condition that if true, will display the message "Push button A". This message appears if the offset is equal -4 then the BBC micro:bit will state "Push Button A".
<br/>
<br/>
## 3. Write the one line of code to show this image
![](/static/mb/lessons/offset-image-0.png)
<br/>
<br/>
## 4. Write the two lines of code that trigger the variable offset to increase by one.
![](/static/mb/lessons/offset-image-1.png)
<br/>