Search Header Logo

Perulangan

Authored by RADHIAH MARDHIAH

Information Technology (IT)

University

Used 4+ times

Perulangan
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

Apa output dari hasil pemrograman berikut?

***

*********

Program tidak berhenti

Output kosong

2.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

Berapakali kata ”Loop” di cetak?

15

10

5

25

3.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Manakah dari pilihan berikut yang akan menyebabkan infinite loop?

for (int i = 0; i < 10; i++) cout << i;

while (true) { break; }

do { cout << "A"; } while (false);

while (1) { }

4.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

Manakah pernyataan benar tentang for loop di bawah

Mencetak semua angka dari 0 sampai 5

Loop akan berjalan 5 kali

Output: 0 2 4 

Tidak akan mencetak apa pun karena kondisi salah

5.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

Berapa kali Hello dicetak?

2

3

5

6

6.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

Apa hasil dari program ini?

1 2 3 4 5

2 4

1 3 5

0 2 4

7.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

Apa output dari program berikut?

5 4 3 2 1

5 4 3 2 1 0

5 4 3 2

Tidak mencetak apa pun

Access all questions and much more by creating a free account

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

Already have an account?