moved remaining quizzes

This commit is contained in:
Michael Elliot Braun
2016-03-29 15:21:17 -07:00
parent c6e2391bcd
commit 0e816f2398
8 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# digi yoyo quiz answers
Answers for digi yoyo quiz.
This is the answer key for the [digi yoyo quiz](/microbit/lessons/digi-yoyo/quiz).
## 1. Describe what a "while loop" does?
<br/>
A loop that repeats code while a condition is true.
## 2. Write the code that will create a **variable** called `count` and set the variable to 0.
![](/static/mb/lessons/counter-0.png)
<br/>
```
let count = 0
```
## 3. Create a `while loop` that will loop until the **variable** `count` equals 4.
![](/static/mb/lessons/digi-yoyo-0.png)
<br/>
```
while (count < 5) {
count = count + 1
}
```

View File

@ -0,0 +1,28 @@
# digi yoyo quiz
Create a counter with a while loop
## Name
## Directions
Use this activity document to guide your work in the [digi yoyo tutorial](/microbit/lessons/digi-yoyo/tutorial)
Answer the questions while completing the tutorial. Pay attention to the dialogues!
## 1. Describe what a "while loop" does?
<br/>
## 2. Write the code that will create a variable called count and set the variable to 0.
![](/static/mb/lessons/counter-0.png)
<br/>
## 3. Write the code for a while loop that will loop until the variable count equals 4.
![](/static/mb/lessons/digi-yoyo-0.png)
<br/>