Quiz Algoritma Looping

Quiz Algoritma Looping

University

15 Qs

quiz-placeholder

Similar activities

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

BI -KAIZEN

BI -KAIZEN

University

13 Qs

Algoritma Remedial RPL

Algoritma Remedial RPL

University

20 Qs

Cuestionario Steve Jobs

Cuestionario Steve Jobs

12th Grade - University

10 Qs

HTML - Introdução

HTML - Introdução

University

16 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

DSA quiz 3 set 1

DSA quiz 3 set 1

University

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Quiz Algoritma Looping

Quiz Algoritma Looping

Assessment

Quiz

Computers

University

Medium

Created by

Khaerul Anam

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?