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 Wayground
10 questions
Pemrograman & Aplikasi Mikrokontroler (Pengenalan IDE)

Quiz
•
11th Grade - University
16 questions
Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Quiz
•
11th Grade - University
10 questions
Chapter Quiz

Quiz
•
University
10 questions
Refresh Python

Quiz
•
University
15 questions
Mastering Python Control Flow

Quiz
•
University
20 questions
2F-3 | Python Quiz | 22/11/2024

Quiz
•
University
20 questions
Python Quiz Girls in ICT Day

Quiz
•
University
10 questions
Quiz Meet 3 Mini SC Programing

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade