
Pemahaman Perulangan FOR
Quiz
•
Education
•
11th Grade
•
Practice Problem
•
Hard
Muchamad Maulana
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa sintaks dasar dari perulangan FOR?
for (initialization; condition; increment) { // code to execute }
for (condition; increment) { // code block }
for (i = 0; i < n) { // loop body }
for (start; check) { // execute code }
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sebutkan komponen utama yang terdapat dalam sintaks perulangan FOR!
Inisialisasi, kondisi, increment/decrement
Kondisi, loop, fungsi
Inisialisasi, kondisi, array
Inisialisasi, kondisi, variabel
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi dari bagian inisialisasi dalam perulangan FOR?
Untuk mendeklarasikan fungsi baru.
Untuk menentukan jumlah iterasi perulangan.
Untuk mendeklarasikan dan menginisialisasi variabel kontrol perulangan.
Untuk menghentikan perulangan FOR.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jelaskan peran kondisi dalam perulangan FOR!
Kondisi dalam perulangan FOR menentukan batasan iterasi dan menghentikan perulangan saat syarat tidak terpenuhi.
Kondisi dalam perulangan FOR hanya berfungsi untuk menampilkan hasil akhir.
Kondisi dalam perulangan FOR tidak mempengaruhi jalannya perulangan.
Kondisi dalam perulangan FOR hanya digunakan untuk menghitung jumlah iterasi.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang terjadi jika kondisi dalam perulangan FOR selalu bernilai true?
Perulangan akan terjadi sekali saja.
Perulangan tak terbatas (infinite loop) akan terjadi.
Perulangan akan berhenti setelah satu iterasi.
Kondisi akan selalu bernilai false.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sebutkan contoh penggunaan perulangan FOR dalam bahasa pemrograman!
for i = 1 to 5: print(i)
while i < 5: print(i)
foreach i in list: print(i)
for i in range(1, 6): print(i)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara menghentikan perulangan FOR sebelum kondisi terpenuhi?
Gunakan pernyataan 'continue' dalam perulangan FOR.
Tunggu hingga perulangan selesai sebelum menghentikannya.
Gunakan pernyataan 'break' dalam perulangan FOR.
Ubah kondisi perulangan agar tidak terpenuhi.
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
Already have an account?
Similar Resources on Wayground
10 questions
Asesmen (Literasi dan Numerasi)
Quiz
•
9th - 12th Grade
7 questions
IGCSE ICT - Safety and Security
Quiz
•
10th - 12th Grade
10 questions
Prinsip Komunikasi Efektif
Quiz
•
10th Grade - University
10 questions
Teks Rekon Pribadi Pengalaman
Quiz
•
9th - 12th Grade
10 questions
CALL: Causative Verb
Quiz
•
10th - 11th Grade
10 questions
Passive
Quiz
•
8th - 12th Grade
10 questions
Gambar Teknik Manufaktur
Quiz
•
1st Grade - Professio...
14 questions
Unit 4, AOS 2 2020
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
