# Kuis Algoritma Perulangan(Kelas X Semester 1)

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
| By Sayafitri
S
Sayafitri
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,057
Questions: 5 | Attempts: 1,057

Settings

.

• 1.

### Berikut ini permasalahan yang memerlukan struktur perulangan kecuali ....

• A.

Menyimpan sekumpulan data murid di sebuah sekolah

• B.

Menghitung rata-rata hasil ujian semua siswa kelas X

• C.

Mengurutkan bilangan

• D.

Mencari judul buku dari koleksi perpustakaan

D. Mencari judul buku dari koleksi perpustakaan
Explanation
The given options are all problems that require some form of repetition or looping, except for "Mencari judul buku dari koleksi perpustakaan" which means "Finding the title of a book from a library collection". This task does not require any repetition as it is a one-time search for a specific book title.

Rate this question:

• 2.

### Salah satu bagain dari sebuah perulangan adalah sentinel, fungsinya adalah ....

• A.

Agar perulangan berjalan

• B.

• C.

Agar proses atau langkah jelas, tidak ambigu

• D.

Agar hasil akhirnya benar

B. Agar perulangan ada titik hentinya
Explanation
The correct answer is "Agar perulangan ada titik hentinya". A sentinel is used in a loop to provide a condition for termination. It acts as a signal to indicate when the loop should stop executing and the program should move on to the next step. Without a sentinel, the loop would continue indefinitely, causing the program to run indefinitely or result in an infinite loop. Therefore, the purpose of a sentinel in a loop is to ensure that there is a point at which the loop will end.

Rate this question:

• 3.

### Perhatikan algoritma berikut untuk soal nomor 3 dan 4Integer i;1)i<--10;4) WHILE (i>0 )DO5)                i<-- i-1;6)                WRITE(i);7) END Output dari algoritma di atas adalah ...

• A.

1 sampai 10

• B.

9

• C.

10 sampai 1

• D.

10 – 0

C. 10 sampai 1
Explanation
The output of the given algorithm is "10 sampai 1" because the algorithm starts with the value of i as 10 and then enters a loop. Inside the loop, the value of i is decremented by 1 and then printed. This process continues until the value of i becomes 0. So, the loop will run 10 times and print the values of i from 10 to 1 in descending order.

Rate this question:

• 4.

### Berikut ini pernyataan yang benar mengenai perulangan dengan struktur REPEAT UNTIL, kecuali.....

• A.

Kondisi diperiksa setelah proses dilakukan

• B.

Minimal menjalankan perintah satu kali

• C.

Memerlukan iterator

• D.

Perulangan dilakukan selama kondisi dipenuhi

D. Perulangan dilakukan selama kondisi dipenuhi
Explanation
The statement "perulangan dilakukan selama kondisi dipenuhi" is the correct answer. The REPEAT UNTIL loop structure executes the process at least once and then checks the condition. It does not continue the loop as long as the condition is true. Therefore, this statement is not true for the REPEAT UNTIL loop structure.

Rate this question:

• 5.

### Perhatikan algoritma dibawah ini......Integer cacahcacah <-- 1repeatwrite("Halo")cacah <-- cacah+1;until (cacah>25) output dari algoritma diatas adalah?

• A.

Menampilkan 1-25

• B.

Menampilkan halo 25 kali

• C.

Menampilkan halo lebih dari 25 kali

• D.

Menampilkan 25-1

D. Menampilkan 25-1
Explanation
The given algorithm starts with an integer variable "cacah" initialized to 1. It then enters a repeat-until loop where it writes "Halo" and increments "cacah" by 1. This loop continues until "cacah" becomes greater than 25. Therefore, the output of the algorithm will be "Menampilkan 25-1", which means it will display the numbers from 25 to 1.

Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

• Current Version
• Mar 21, 2023
Quiz Edited by
ProProfs Editorial Team
• Mar 24, 2017
Quiz Created by
Sayafitri