Quiz Algoritma Looping

Quiz
•
Computers
•
University
•
Medium
Khaerul Anam
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa hasil output dari kode berikut ini?
for i in range(3):
print(i)
1, 2, 3
0, 1, 2
0, 1, 2, 3
Tidak ada output
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Looping mana yang digunakan untuk kasus jumlah iterasi yang tidak diketahui sebelumnya?
for
while
nested
do while
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa kompleksitas waktu dari kode berikut?
for i in range(n):
for j in range(n):
print(i, j)
O(n)
O(log n)
O(n²)
O(n log n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa hasil output dari kode berikut ini?
x = 1
while x < 5:
print(x)
x += 2
1,3
1,2,3,4
1,3,5
infinite loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Looping bersarang paling sering digunakan untuk:
Mengakses elemen array 1 dimensi
Mengakses elemen array 2 dimensi
Menghitung jumlah elemen dalam list
Semua di atas
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa perbedaan utama antara while dan do-while loop?
while selalu dieksekusi setidaknya sekali
do-while selalu dieksekusi setidaknya sekali
Tidak ada perbedaan
while memiliki kondisi di akhir
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa kompleksitas waktu dari kode berikut?
i = 1
while i <= n:
print(i)
i *= 2
O(1)
O(log n)
O(n)
O(n²)
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz 3 Alg. dan Struktur Data IF A

Quiz
•
University
10 questions
2024 - Struktur Data Quiz 1

Quiz
•
University
20 questions
Bootcamp Data Analyst 2

Quiz
•
University
10 questions
Struktur Percabangan PHP

Quiz
•
2nd Grade - University
20 questions
PERULANGAN WHILE DO

Quiz
•
University
10 questions
Quiz Pemdas

Quiz
•
University
10 questions
Dasar Koding dan Kecerdasan Buatan

Quiz
•
10th Grade - University
15 questions
Javascript Array dan Object

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University