Apa kegunaan perulangan dalam pemrograman?

Perulangan

Quiz
•
Information Technology (IT)
•
University
•
Hard
M.Rizqi Mulyawan
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
untuk menghentikan program.
Membuat kode lebih sulit
Menghapus variabel yang tidak digunakan
Mengulangi perintah berkali-kali
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa perbedaan utama antara for loop dan while loop?
for loop hanya untuk angka, while loop untuk string
for loop digunakan untuk jumlah iterasi tetap, while loop untuk kondisi tertentu
for loop hanya bisa digunakan dengan list
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fungsi range(1, 6) akan menghasilkan...
1, 2, 3, 4, 5, 6
0, 1, 2, 3, 4, 5
1, 2, 3, 4, 5
1, 3, 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang terjadi jika kondisi pada while loop selalu benar?
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Sintaks apa yang digunakan untuk menghentikan loop secara paksa?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kapan kita menggunakan while loop?
Saat kita tahu jumlah perulangan pasti
Untuk membuat kode lebih rapi
Untuk menghindari for loop
Saat iterasi bergantung pada kondisi tertentu
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa Output dari codingan ini?
Hello
Hello
Hello
Tidak ada output
Hello Hello Hello
Hello\nHello
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Quiz Meet 3 Mini SC Programing

Quiz
•
University
16 questions
Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Quiz
•
11th Grade - University
20 questions
Pemrograman Blokly

Quiz
•
9th Grade - University
20 questions
Ulangan Harian Kelas 4

Quiz
•
4th Grade - University
10 questions
Quiz on Basics of C

Quiz
•
University
20 questions
quiz1B1

Quiz
•
7th Grade - University
20 questions
Pretest Alpro Dasar

Quiz
•
University
15 questions
Python for loop/lists

Quiz
•
9th Grade - University
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