mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-07 07:16:39 +02:00
Migrate 2.4-arrays-loops id quiz to quiz-app
This commit is contained in:
@@ -1,18 +0,0 @@
|
|||||||
*Selesaikan kuis ini dengan mencentang satu jawaban per pertanyaan.*
|
|
||||||
|
|
||||||
1. Bagian for-loop manakah yang perlu Anda modifikasi untuk menambah iterasinya sebesar 5
|
|
||||||
|
|
||||||
- [ ] kondisi
|
|
||||||
- [ ] counter
|
|
||||||
- [ ] ekspresi-iterasi
|
|
||||||
|
|
||||||
2. Apa perbedaan antara `while` dan `for-loop`
|
|
||||||
|
|
||||||
- [ ] Sebuah `for-loop` memiliki penghitung dan ekspresi-iterasi, di mana `while` hanya memiliki kondisi
|
|
||||||
- [ ] A `while` memiliki penghitung dan ekspresi-iterasi di mana `for-loop` hanya memiliki kondisi
|
|
||||||
- [ ] Mereka sama, hanya alias untuk satu sama lain
|
|
||||||
|
|
||||||
3. Diberikan kode `for (let i = 1; i <5; i ++)`, berapa banyak iterasi yang akan dilakukan?
|
|
||||||
|
|
||||||
- [ ] 5
|
|
||||||
- [ ] 4
|
|
@@ -1,13 +0,0 @@
|
|||||||
*Selesaikan kuis ini di kelas*
|
|
||||||
|
|
||||||
1. Untuk merujuk ke item tertentu dalam sebuah array, Anda akan menggunakan a
|
|
||||||
|
|
||||||
- [ ] kurung siku `[]`
|
|
||||||
- [ ] indeks
|
|
||||||
- [ ] kurung kurawal `{}`
|
|
||||||
|
|
||||||
2. Bagaimana Anda mendapatkan jumlah item dalam sebuah array
|
|
||||||
|
|
||||||
- [ ] Metode `len(array)`
|
|
||||||
- [ ] Properti `size` pada array
|
|
||||||
- [ ] Properti `length` pada array
|
|
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
## Kuis Pra-Kuliah
|
## Kuis Pra-Kuliah
|
||||||
|
|
||||||
[Kuis pra-Kuliah](./.github/pre-lecture-quiz.id.md)
|
[Kuis pra-Kuliah](https://nice-beach-0fe9e9d0f.azurestaticapps.net/quiz/13))
|
||||||
|
|
||||||
Pelajaran ini mencakup dasar-dasar JavaScript, bahasa yang menyediakan interaktivitas di web. Dalam pelajaran ini, Anda akan belajar tentang array dan loop, yang digunakan untuk memanipulasi data.
|
Pelajaran ini mencakup dasar-dasar JavaScript, bahasa yang menyediakan interaktivitas di web. Dalam pelajaran ini, Anda akan belajar tentang array dan loop, yang digunakan untuk memanipulasi data.
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ Ada cara lain untuk melakukan perulangan pada array selain perulangan for dan wh
|
|||||||
|
|
||||||
## Kuis Pasca-Kuliah
|
## Kuis Pasca-Kuliah
|
||||||
|
|
||||||
[Kuis pasca-kuliah](./.github/post-lecture-quiz.id.md)
|
[Kuis pasca-kuliah](https://nice-beach-0fe9e9d0f.azurestaticapps.net/quiz/14)
|
||||||
|
|
||||||
## Review & Belajar Mandiri
|
## Review & Belajar Mandiri
|
||||||
|
|
||||||
|
@@ -646,44 +646,44 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 13,
|
"id": 13,
|
||||||
"title": "Lesson 7 - JavaScript Basics - Arrays and Loops: Pre-Lecture Quiz",
|
"title": "Pelajaran 7 - Dasar-dasar JavaScript - Array dan Loop: Kuis Pra-Kuliah",
|
||||||
"quiz": [
|
"quiz": [
|
||||||
{
|
{
|
||||||
"questionText": "To refer to a specific item in an array, you would use a",
|
"questionText": "Untuk merujuk ke item tertentu dalam sebuah array, Anda akan menggunakan a",
|
||||||
"answerOptions": [
|
"answerOptions": [
|
||||||
{
|
{
|
||||||
"answerText": "square bracket []",
|
"answerText": "kurung siku []",
|
||||||
"isCorrect": "false"
|
"isCorrect": "false"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"answerText": "index",
|
"answerText": "indeks",
|
||||||
"isCorrect": "true"
|
"isCorrect": "true"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"answerText": "curly braces {}",
|
"answerText": "kurung kurawal {}",
|
||||||
"isCorrect": "false"
|
"isCorrect": "false"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"questionText": "How do you get the number of items in an array?",
|
"questionText": "Bagaimana Anda mendapatkan jumlah item dalam sebuah array",
|
||||||
"answerOptions": [
|
"answerOptions": [
|
||||||
{
|
{
|
||||||
"answerText": "The 'len(array)' method",
|
"answerText": "Metode `len(array)`",
|
||||||
"isCorrect": "false"
|
"isCorrect": "false"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"answerText": "The property size on the array",
|
"answerText": "Properti `size` pada array",
|
||||||
"isCorrect": "false"
|
"isCorrect": "false"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"answerText": "The length property on the array",
|
"answerText": "Properti `length` pada array",
|
||||||
"isCorrect": "true"
|
"isCorrect": "true"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"questionText": "In JavaScript, indexes start at",
|
"questionText": "Di JavaScript, indeks dimulai dari",
|
||||||
"answerOptions": [
|
"answerOptions": [
|
||||||
{
|
{
|
||||||
"answerText": "0",
|
"answerText": "0",
|
||||||
@@ -703,13 +703,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 14,
|
"id": 14,
|
||||||
"title": "Lesson 7 - JavaScript Basics - Arrays and Loops: Post-Lecture Quiz",
|
"title": "Pelajaran 7 - Dasar-dasar JavaScript - Array dan Loop: Kuis Pasca-Kuliah",
|
||||||
"quiz": [
|
"quiz": [
|
||||||
{
|
{
|
||||||
"questionText": "What part of a for-loop would you need to modify to increment its iteration by 5?",
|
"questionText": "Bagian for-loop manakah yang perlu Anda modifikasi untuk menambah iterasinya sebesar 5",
|
||||||
"answerOptions": [
|
"answerOptions": [
|
||||||
{
|
{
|
||||||
"answerText": "condition",
|
"answerText": "kondisi",
|
||||||
"isCorrect": "true"
|
"isCorrect": "true"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -717,30 +717,30 @@
|
|||||||
"isCorrect": "false"
|
"isCorrect": "false"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"answerText": "iteration-expression",
|
"answerText": "ekspresi-iterasi",
|
||||||
"isCorrect": "false"
|
"isCorrect": "false"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"questionText": "What's the difference between a while and a for-loop",
|
"questionText": "Apa perbedaan antara while dan for-loop",
|
||||||
"answerOptions": [
|
"answerOptions": [
|
||||||
{
|
{
|
||||||
"answerText": "A for-loop has a counter and iteration-expression, where while only has a condition",
|
"answerText": "Sebuah for-loop memiliki penghitung dan ekspresi-iterasi, di mana while hanya memiliki kondisi",
|
||||||
"isCorrect": "true"
|
"isCorrect": "true"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"answerText": "A while has a counter and iteration-expression where for-loop only has a condition",
|
"answerText": "Sebuah while memiliki penghitung dan ekspresi-iterasi di mana for-loop hanya memiliki kondisi",
|
||||||
"isCorrect": "false"
|
"isCorrect": "false"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"answerText": "They are the same, just an alias for one another",
|
"answerText": "Mereka sama, hanya alias untuk satu sama lain",
|
||||||
"isCorrect": "false"
|
"isCorrect": "false"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"questionText": "Given the code for (let i=1; i < 5; i++), how many iterations will it perform?",
|
"questionText": "Diberikan kode for (let i = 1; i <5; i ++), berapa banyak iterasi yang akan dilakukan?",
|
||||||
"answerOptions": [
|
"answerOptions": [
|
||||||
{
|
{
|
||||||
"answerText": "5",
|
"answerText": "5",
|
||||||
|
Reference in New Issue
Block a user