
Quiz Algoritma Looping
Authored by Khaerul Anam
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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²)
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
11 questions
What is a computer
Quiz
•
KG - University
12 questions
Google Classroom
Quiz
•
7th Grade - University
16 questions
Algo Quiz
Quiz
•
University
13 questions
Computer Science: CPU performance
Quiz
•
University
18 questions
Quiz on Misinformation and Bias
Quiz
•
10th Grade - University
20 questions
DI (EM24) - Diseño de Contenidos (T8)
Quiz
•
University - Professi...
20 questions
The Internet
Quiz
•
University
20 questions
COA_QUIZ_UNIT I
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University