mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-10-02 17:28:04 +02:00
moving folders
This commit is contained in:
18
js-basics/4-arrays-loops/.github/post-lecture-quiz.md
vendored
Normal file
18
js-basics/4-arrays-loops/.github/post-lecture-quiz.md
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
*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
|
13
js-basics/4-arrays-loops/.github/pre-lecture-quiz.md
vendored
Normal file
13
js-basics/4-arrays-loops/.github/pre-lecture-quiz.md
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
*Complete this quiz in class*
|
||||
|
||||
1. To refer to specific item in an array, you would use a
|
||||
|
||||
- [ ] square bracket `[]`
|
||||
- [ ] index
|
||||
- [ ] curly braces `{}`
|
||||
|
||||
2. How do you get the number of items in an array
|
||||
|
||||
- [ ] The `len(array)` method
|
||||
- [ ] The property `size` on the array
|
||||
- [ ] The `length` property on the array
|
Reference in New Issue
Block a user