You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
626 B
18 lines
626 B
*Complete this quiz by checking one answer per question.*
|
|
|
|
1. What part of a for-loop would you need to modify to increment its iteration by 5
|
|
|
|
- [ ] condition
|
|
- [ ] counter
|
|
- [ ] iteration-expression
|
|
|
|
2. What's the difference between a `while` and a `for-loop`
|
|
|
|
- [ ] A `for-loop` has a counter and iteration-expression, where `while` only has a condition
|
|
- [ ] A `while` has a counter and iteration-expression where `for-loop` only has a condition
|
|
- [ ] They are the same, just an alias for one another
|
|
|
|
3. Given the code `for (let i=1; i < 5; i++)`, how many iterations will it perform?
|
|
|
|
- [ ] 5
|
|
- [ ] 4 |