2016-03-26 00:47:20 +01:00
|
|
|
# love meter quiz
|
|
|
|
|
2016-04-02 01:22:47 +02:00
|
|
|
Learn how to make a love meter that you can try with someone.
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
## Name
|
|
|
|
|
|
|
|
## Directions
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
Use this activity document to guide your work in the [love meter tutorial](/lessons/love-meter/tutorial).
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
Answer the questions below while completing the tutorial. Pay attention to the dialogues!
|
|
|
|
|
|
|
|
## 1. Describe what "input -> on pin pressed (P0)" does?
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
## 2. Create a condition for on pin pressed ("P1").
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
## 3. Describe what this line of code does?
|
|
|
|
|
|
|
|
```
|
|
|
|
let x = Math.random(10)
|
|
|
|
```
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
## 4. Describe what adding 1 to variable x does?
|
|
|
|
|
|
|
|
```
|
|
|
|
let x_ = Math.random(10)
|
|
|
|
x = x + 1
|
|
|
|
```
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
## 5. Describe why you must hold ground (GND) before pressing (P0) to run a program using "input -> on pin pressed (P0)" on the BBC micro:bit
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|