
Pemrograman C: Looping dan Strukturnya
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Ahmad Sidiq
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 yang dimaksud dengan loop dalam pemrograman?
Loop adalah struktur kontrol untuk eksekusi berulang dalam pemrograman.
Loop adalah cara untuk mendeklarasikan variabel.
Loop adalah jenis data dalam pemrograman.
Loop adalah fungsi untuk menghentikan program.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jelaskan struktur dasar dari loop for!
for (kondisi; inisialisasi; increment) { // kode }
Struktur dasar dari loop for adalah: for (inisialisasi; kondisi; increment/decrement) { // kode yang akan dijalankan }
for (increment; kondisi) { // kode }
for (inisialisasi; increment) { // kode }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jelaskan struktur dasar dari loop while!
for (i = 0; i < n; i++) { // blok kode }
if (kondisi) { // blok kode }
Struktur dasar loop while: while (kondisi) { // blok kode }
do { // blok kode } while (kondisi);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sebutkan perbedaan utama antara loop for dan while!
Perbedaan utama antara loop for dan while adalah bahwa for digunakan untuk iterasi dengan jumlah yang diketahui, sementara while digunakan untuk iterasi berdasarkan kondisi.
Loop for lebih efisien daripada loop while dalam semua kasus.
Loop while tidak dapat digunakan untuk iterasi yang memiliki batasan tertentu.
Loop for digunakan untuk iterasi berdasarkan kondisi, sementara while digunakan untuk iterasi dengan jumlah yang diketahui.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Berikan contoh penggunaan loop for dalam program!
for (int k = 1; k < 5; k++) { System.out.println(k); }
for (int j = 0; j < 10; j++) { System.out.println(j); }
for (int l = 1; l <= 3; l++) { System.out.println('Hello'); }
for (int i = 1; i <= 5; i++) { System.out.println(i); }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Berikan contoh penggunaan loop while dalam program!
for (int i = 1; i < 5; i++) { System.out.println(i); }
do { System.out.println(i); i++; } while (i <= 5);
int i = 0; while (i < 10) { System.out.println(i); i += 2; }
int i = 1; while (i <= 5) { System.out.println(i); i++; }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa keuntungan menggunakan loop dalam pemrograman?
Mengurangi efisiensi pemrosesan data
Keuntungan menggunakan loop dalam pemrograman adalah mengurangi redundansi, menyederhanakan pemeliharaan kode, dan memungkinkan pemrosesan data secara efisien.
Meningkatkan kompleksitas kode
Membuat kode lebih sulit dipahami
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
PERINTAH SQL 01
Quiz
•
10th Grade - University
10 questions
DTJSQuiz
Quiz
•
11th Grade
10 questions
Intro to Photoshop
Quiz
•
9th - 12th Grade
15 questions
Lesson 1
Quiz
•
11th Grade
10 questions
S2 Sphero Knowledge Check 2
Quiz
•
11th Grade
13 questions
Photoshop - Masks
Quiz
•
10th - 12th Grade
15 questions
Uji Pemahaman Formula Excel
Quiz
•
9th Grade - University
15 questions
Grade 8 End of Unit Revision
Quiz
•
8th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
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
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Los mandatos y las recetas
Lesson
•
11th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
