pxt-calliope/olddocs/lessons/love-meter/quiz.md
Tom Ball f4eca66648 move lessons out of web site
will move select lessons back to "educators" section
2016-06-14 11:49:58 -04:00

40 lines
744 B
Markdown

# love meter blocks quiz
Learn how to make a love meter that you can try with someone.
## Name
## Directions
Use this activity document to guide your work in the [love meter activity](/lessons/love-meter/activity).
Answer the questions below while completing the activity. Pay attention to the dialogues!
## 1. Describe what `on pin pressed` does?
## 2. Create a condition for on pin pressed (P0).
## 3. Describe what this line of code does?
```blocks
let x = Math.random(9)
```
## 4. Describe what adding 1 to variable x does?
```blocks
let item = 0;
item = 0;
basic.showNumber(item + 1);
```
## 5. Describe why you must hold ground (GND) before pressing (P0) to run a program using `on pin pressed(P0)` on the micro:bit