
Pengulangan dalam Pemrograman
Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
Umar Umar
FREE Resource
Enhance your content in a minute
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.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Intrusion Detection and Prevention Systems
Quiz
•
10th Grade
10 questions
Koding dan Kecerdasan Artifisial
Quiz
•
10th Grade
20 questions
Cloud Service Models & Software Process Models
Quiz
•
2nd Grade - University
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON
Quiz
•
10th Grade - University
10 questions
Conceitos de lógica usando Portugo Studio
Quiz
•
10th Grade
16 questions
9 Weeks Test
Quiz
•
9th - 12th Grade
10 questions
Module 2.3.8 Quiz
Quiz
•
10th Grade
20 questions
Penilaian Akhir Semester Informatika
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Translations, Reflections & Rotations
Quiz
•
8th - 10th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade
20 questions
Simplifying Radicals
Quiz
•
10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
