2016-03-25 16:47:20 -07:00
|
|
|
# flashing heart blocks quiz answers
|
|
|
|
|
|
|
|
Learn how to create an image with a variable.
|
|
|
|
|
2016-04-13 08:27:45 -07:00
|
|
|
This is the answer key for the [flashing heart quiz](/lessons/flashing-heart/quiz).
|
2016-03-25 16:47:20 -07:00
|
|
|
|
|
|
|
## 1. Describe what pause does
|
|
|
|
|
|
|
|
Pause program execution for the specified number of milliseconds.
|
|
|
|
|
|
|
|
## 2. Write the code that leaves an image on the screen for 1 second (1000 milliseconds)
|
|
|
|
|
|
|
|
|
2016-03-29 11:57:50 -07:00
|
|
|
```blocks
|
|
|
|
basic.pause(1000)
|
|
|
|
```
|
2016-03-25 16:47:20 -07:00
|
|
|
|
|
|
|
## 3. Write the code that leaves an image on the screen for 1.5 seconds (1500 milliseconds)
|
|
|
|
|
2016-03-29 11:57:50 -07:00
|
|
|
```blocks
|
|
|
|
basic.pause(1500)
|
|
|
|
```
|
2016-03-25 16:47:20 -07:00
|
|
|
|
|
|
|
|