2016-03-26 00:47:20 +01:00
|
|
|
# answering machine blocks quiz answers
|
|
|
|
|
|
|
|
Create an answering machine on the micro:bit. #LED #screen #show #math #docs #input
|
|
|
|
|
|
|
|
This is the answer key for the [answering machine quiz](/microbit/lessons/answering-machine/quiz).
|
|
|
|
|
|
|
|
## 1. Define what `show string` does?
|
|
|
|
|
|
|
|
Answers may vary. This is a function that will show a string on the LED screen one character at a time (scrolling from left to right).
|
|
|
|
|
|
|
|
## 2. Draw which LED is ON after running this code
|
|
|
|
|
2016-03-29 01:35:38 +02:00
|
|
|
```blocks
|
|
|
|
basic.showString("Y")
|
|
|
|
|
|
|
|
```
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
![](/static/mb/lessons/answering-machine-0.png)
|
|
|
|
|
|
|
|
## 3. Draw which LED is ON after running this code
|
|
|
|
|
2016-03-29 01:35:38 +02:00
|
|
|
|
|
|
|
```blocks
|
|
|
|
basic.showString("Hi")
|
|
|
|
|
|
|
|
```
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
![](/static/mb/lessons/answering-machine-1.png)
|
|
|
|
|
|
|
|
|
|
|
|
## 4. If the rectangle below represents the micro:bit, write the code to display the letter "Z".
|
|
|
|
|
|
|
|
![](/static/mb/lessons/answering-machine-2.png)
|
|
|
|
|
2016-03-29 22:17:00 +02:00
|
|
|
|
|
|
|
```blocks
|
|
|
|
basic.showString("Z")
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2016-03-26 00:47:20 +01:00
|
|
|
|