
Pengulangan dalam Pemrograman
Authored by Umar Umar
Information Technology (IT)
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa itu pengulangan for dalam pemrograman?
Pengulangan for hanya digunakan untuk menghentikan program.
Pengulangan for adalah metode untuk mengurutkan data.
Pengulangan for adalah struktur kontrol untuk menjalankan pernyataan berulang kali.
Pengulangan for tidak dapat digunakan dalam loop bersarang.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sebutkan sintaks dasar dari pengulangan for!
for (i = 0; i < n; i++) { // kode }
for (int i = 0; i < n; i++) { // kode }
for (int i = 1; i < n; i++) { // kode }
for (int i = 0; i <= n; i++) { // kode }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa perbedaan antara pengulangan while dan for?
'while' digunakan untuk iterasi tanpa kondisi
Perbedaan utama adalah bahwa 'while' bergantung pada kondisi, sedangkan 'for' bergantung pada jumlah iterasi.
'while' dan 'for' memiliki fungsi yang sama
'for' hanya digunakan untuk array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jelaskan cara kerja pengulangan while!
Pengulangan while tidak memerlukan kondisi.
Pengulangan while hanya berjalan sekali.
Pengulangan while akan terus berjalan selama kondisi yang ditentukan bernilai true.
Pengulangan while akan berhenti jika kondisi bernilai false.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa itu pengulangan do-while?
Pengulangan do-while memeriksa kondisi sebelum menjalankan blok kode.
Pengulangan do-while adalah struktur kontrol yang menjalankan blok kode setidaknya sekali sebelum memeriksa kondisi.
Pengulangan do-while hanya menjalankan blok kode jika kondisi benar.
Pengulangan do-while tidak pernah menjalankan blok kode.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sebutkan satu contoh penggunaan do-while!
Contoh penggunaan do-while: let input; do { input = prompt('Masukkan angka lebih dari 10:'); } while (input <= 10);
Contoh penggunaan do-while: for (let i = 0; i < 5; i++) { console.log(i); }
Contoh penggunaan do-while: let input; while (true) { input = prompt('Masukkan angka:'); }
Contoh penggunaan do-while: let x = 0; while (x < 5) { x++; }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi dari pernyataan break dalam pengulangan?
Fungsi dari pernyataan break adalah untuk menghentikan pengulangan.
Fungsi dari pernyataan break adalah untuk menunda pengulangan.
Fungsi dari pernyataan break adalah untuk mengulang kembali pengulangan.
Fungsi dari pernyataan break adalah untuk melanjutkan pengulangan.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Introduction to Excel
Quiz
•
10th Grade
20 questions
Cloud Service Models & Software Process Models
Quiz
•
2nd Grade - University
20 questions
Latihan Soal Informatika
Quiz
•
10th Grade
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON
Quiz
•
10th Grade - University
12 questions
Recognize Computing Devices
Quiz
•
9th - 12th Grade
10 questions
Conceitos de lógica usando Portugo Studio
Quiz
•
10th Grade
12 questions
2.1 Wire Ethernet
Quiz
•
9th - 12th Grade
10 questions
Module 2.3.8 Quiz
Quiz
•
10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade