pxt-calliope/docs/lessons/lucky-7/quiz-answers.md

36 lines
716 B
Markdown
Raw Permalink Normal View History

2016-03-26 00:47:20 +01:00
# lucky 7 blocks quiz answers
2016-11-02 01:44:37 +01:00
Show a number on the @boardname@.
2016-03-26 00:47:20 +01:00
2016-04-13 17:27:45 +02:00
This is the answer key for the [lucky 7 quiz](/lessons/lucky-7/quiz).
2016-03-26 00:47:20 +01:00
## 1. Describe what `show number` does?
Answers may vary. This will show a number on the LED screen, one digit at a time (scrolling from left to right).
## 2. Draw every LED that is ON after running this code
2016-03-29 01:32:31 +02:00
```blocks
basic.showNumber(7)
```
2016-03-26 00:47:20 +01:00
![](/static/mb/lessons/lucky-7-0.png)
## 3. Draw every LED that is ON after running this code
2016-03-29 01:32:31 +02:00
```blocks
basic.showNumber(21)
```
2016-03-26 00:47:20 +01:00
![](/static/mb/lessons/lucky-7-1.png)
2016-11-02 01:44:37 +01:00
## 4. Write the code that will be used to display the number 3 on the @boardname@.
2016-03-26 00:47:20 +01:00
![](/static/mb/lessons/lucky-7-2.png)
2016-03-29 01:32:31 +02:00
```blocks
basic.showNumber(3)
```