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

39 lines
729 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# lucky 7 quiz answers
2016-04-02 01:22:47 +02:00
Show a number on the BBC micro:bit.
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 `basic->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
```
basic.showNumber(7, 150)
```
<br/>
![](/static/mb/lessons/lucky-7-0.png)
## 3. Draw every LED that is ON after running this code
```
basic.showNumber(21, 150)
```
![](/static/mb/lessons/lucky-7-1.png)
## 4. Write the code that will be used to display the number 3 on the BBC micro:bit.
![](/static/mb/lessons/lucky-7-2.png)
<br/>
```
basic.showNumber(3, 150)
```