Apa itu loop for dalam bahasa C?
Penggunaan For dalam Bahasa C

Quiz
•
Computers
•
10th Grade
•
Medium
Yarlis Andrianis
Used 6+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 10 pts
Loop for hanya dapat digunakan dalam fungsi utama bahasa C.
Loop for adalah struktur kontrol untuk mengulangi blok kode dalam bahasa C.
Loop for adalah fungsi untuk menghentikan program dalam bahasa C.
Loop for digunakan untuk mendeklarasikan variabel dalam bahasa C.
2.
MULTIPLE CHOICE QUESTION
2 mins • 10 pts
Sebutkan struktur dasar dari loop for!
for (start; check; step) {
for (begin; condition; change) {
for (start/initialization; condition; increment) {
for (init; test; update) {
3.
MULTIPLE CHOICE QUESTION
2 mins • 10 pts
Bagaimana cara menggunakan loop for untuk mencetak angka dari 1 hingga 10?
for (let i = 0; i < 10; i++) { console.log(i); }
for (let i = 1; i <= 5; i++) { console.log(i); }
for (let i = 1; i <= 10; i++) { console.log(i); }
for (let i = 1; i < 10; i++) { console.log(i); }
4.
MULTIPLE CHOICE QUESTION
2 mins • 10 pts
Apa yang terjadi jika kondisi pada loop for selalu benar?
Loop akan menghasilkan nilai acak setiap kali.
Loop akan berjalan selamanya (infinite loop).
Loop akan berhenti setelah satu iterasi.
Loop akan berjalan dengan kecepatan yang sangat lambat.
5.
MULTIPLE CHOICE QUESTION
2 mins • 10 pts
Sebutkan tiga komponen utama dalam pernyataan for!
Pengulangan, kondisi, fungsi
Inisialisasi, pengulangan, variabel
Inisialisasi, kondisi, iterasi
Kondisi, fungsi, parameter
6.
MULTIPLE CHOICE QUESTION
2 mins • 10 pts
Bagaimana cara menghitung jumlah angka genap dari 1 hingga 20 menggunakan loop for?
90
100
110
120
7.
MULTIPLE CHOICE QUESTION
2 mins • 10 pts
Apa yang dimaksud dengan inisialisasi dalam loop for?
Inisialisasi adalah proses menghentikan loop setelah satu iterasi.
Inisialisasi adalah langkah untuk mengatur variabel loop sebelum eksekusi loop.
Inisialisasi adalah pengaturan kondisi akhir dari loop sebelum dimulai.
Inisialisasi adalah langkah untuk menghapus variabel loop setelah eksekusi loop.
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Kuis Algoritma Pemrograman - Kelas X SMA

Quiz
•
10th Grade
15 questions
Bab3 Berpikir Komputasional - sumatif

Quiz
•
9th Grade - University
20 questions
Evaluasi 1

Quiz
•
10th Grade
20 questions
Uji Pengetahuan Dasar Informatika

Quiz
•
8th Grade - University
15 questions
Quiz Algoritma dan Pemrograman BAB VII

Quiz
•
7th Grade - University
20 questions
Asesmen Informatika

Quiz
•
10th Grade
20 questions
Asesmen Diagnostik Algoritma dan Pemrograman Kelas 9

Quiz
•
9th Grade - University
15 questions
Simulasi & Komunikasi Digital

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade