1.
Metode penulisan algoritma yang menggunakan simbol atau gambar dalam penulisannya disebut ….
Correct Answer
A. Flowchart
Explanation
Flowchart is a method of writing algorithms that uses symbols or diagrams to represent the steps and flow of a process. It visually represents the sequence of operations and decisions in a clear and concise manner. Flowcharts are commonly used in programming and problem-solving to design and analyze algorithms before implementing them in a programming language.
2.
Penulisan pseudocode dalam algoritma menggunakan ….
Correct Answer
D. Bahasa yang mirip bahasa pemrograman
Explanation
The correct answer is "Bahasa yang mirip bahasa pemrograman". Pseudocode is a way of representing an algorithm using a mix of natural language and programming language-like constructs. It is not a specific programming language, but rather a general way of expressing algorithms that is easily understandable by both humans and computers. Pseudocode borrows syntax and conventions from programming languages, making it similar to a programming language but not an actual programming language itself.
3.
Tipe data integer adalah jenis tipe data yang ….
Correct Answer
A. Tidak memiliki nilai pecahan
Explanation
The correct answer is "Tidak memiliki nilai pecahan" because the question is asking about the characteristics of the integer data type. Integer data type is used to store whole numbers without any fractional or decimal part. It does not contain any fractional values or decimal points, hence it does not have any values with fractions or decimals.
4.
Simbol pada flowchart yang disebut terminator mempunyai fungsi ….
Correct Answer
C. Menandakan awal (start) atau akhir (end) program
Explanation
The terminator symbol in a flowchart is used to indicate the start or end of a program. It marks the beginning or the end point of the flowchart, showing where the program starts or ends.
5.
Berikut ini yang merupakan pengertian dari variabel adalah ….
Correct Answer
D. Objek data yang dapat diubah-ubah atau dimanipulasi harga dan nilainya
Explanation
A variable is an object data that can be changed or manipulated in terms of its value or price. It is a storage location in a computer's memory that holds a value. Variables allow programmers to store and manipulate data in a program. They can be assigned different values and can be used to perform calculations or store information. In programming, variables are used to store and retrieve data, making them an essential concept in computer programming.
6.
Jenis bagan alir yang digunakan untuk menjelaskan urutan setiap prosedur yang terdapat pada sistem disebut ….
Correct Answer
D. Bagan alir sistem
Explanation
The correct answer is "Bagan alir sistem". This term refers to a flowchart that is used to explain the sequence of procedures in a system. It is a visual representation that shows the steps and decision points in a system, allowing for a better understanding of the overall process. This type of flowchart is commonly used in various fields, such as business, engineering, and computer programming, to analyze and improve systems.
7.
Operator logika yang menampilkan nilai false apabila salah satu operand bernilai false disebut ….
Correct Answer
C. AND
Explanation
Operator logika yang menampilkan nilai false apabila salah satu operand bernilai false disebut AND. Dalam operator AND, kedua operand harus bernilai true agar hasilnya true. Jika salah satu atau kedua operand bernilai false, maka hasilnya akan false.
8.
Bagian yang merupakan tahap pernyataan dan penentuan berbagai jenis variabel, konstanta dan tipe data yang selanjutnya akan digunakan pada badan algoritma disebut bagian ….
Correct Answer
C. Pendeklarasian
Explanation
The correct answer is "Pendeklarasian". Pendeklarasian refers to the part of the algorithm where various types of variables, constants, and data types are declared and defined before they are used in the body of the algorithm. This step is important as it allows the algorithm to allocate memory and assign initial values to the variables that will be used in the subsequent steps of the algorithm.
9.
Flowchart berikut ini merupakan bentuk flowchart percabangan ….
Correct Answer
A. Satu kondisi
Explanation
The given correct answer is "Satu kondisi". This suggests that the flowchart in question represents a situation where there is only one condition to be evaluated. In other words, there is a single decision point in the flowchart where a choice is made based on a specific condition.
10.
Struktur perulangan yang merupakan bentuk unconditional looping dan telah menetapkan jumlah perulangan sebelum perulangan tersebut dilakukan merupakan konstruksi ….
Correct Answer
A. For …. Do
Explanation
The given correct answer "For .... Do" is the correct explanation. It is a structure that represents an unconditional looping and specifies the number of iterations before the loop is executed. The "For .... Do" construct is commonly used in programming languages to iterate over a specific range or sequence of values. It allows the programmer to control the number of iterations and perform a set of statements repeatedly until the specified condition is met.
11.
Struktur perulangan yang selalu melihat kondisi perulangan apakah sudah terpenuhi atau belum, jika kondisi terpenuhi (bernilai true), akan mengerjakan aksi, disebut …
Correct Answer
C. While …. Do
Explanation
The correct answer is "While .... Do" because a while loop continuously checks the condition before executing the action. If the condition is true, the action is performed.
12.
Konstruksi for dapat digunakan untuk melakkan pencacahan naik, yaitu melakukan perulangan dengan kondisi pencacah ….
Correct Answer
B. Menaik
Explanation
The correct answer is "Menaik" because the given statement mentions that the "for" construction can be used for performing an upward count, which means it is used for looping with an increasing counter. Therefore, "Menaik" is the appropriate choice as it means "upward" or "ascending" in English.
13.
Pada algoritma perulangan terdapat empat komponen yaitu sebagai berikut, kecuali ….
Correct Answer
D. Percabangan
Explanation
The given answer is "Percabangan". In the context of loop algorithms, there are four components: initialization, condition, action or process, and branching. The branching component is not part of the loop algorithm. Branching refers to conditional statements that determine the flow of the program based on certain conditions. In loop algorithms, the branching component is not necessary as the loop will continue until the condition is no longer met.
14.
Aksi yang dilakukan setelah peruangan selesai disebut ….
Correct Answer
B. Terminasi
Explanation
The correct answer is "Terminasi". After a battle or combat is finished, the action that is taken is called "terminasi" or termination. This term refers to the act of ending or concluding the battle, indicating that the battle has come to an end and there will be no further actions or engagements.
15.
Pada perulangan sebagai pencacah, tipe data yang boleh digunakan adalah ….
Correct Answer
C. Integer
Explanation
Pada perulangan sebagai pencacah, tipe data yang boleh digunakan adalah Integer. Integer digunakan untuk menyimpan bilangan bulat, yang sesuai untuk digunakan sebagai pencacah dalam perulangan. Tipe data String digunakan untuk menyimpan teks, tipe data Boolean digunakan untuk menyimpan nilai kebenaran (true atau false), dan tipe data Real digunakan untuk menyimpan bilangan desimal. Namun, dalam konteks perulangan sebagai pencacah, tipe data yang paling sesuai adalah Integer.
16.
Perhatikan algoritma dibawahh ini! Algoritma perulangann angkaDeklarasi f : integeralgoritma f <-- 1 {inisialisasi} while f <= 5 do write (‘A’) f <-- f + 1 end while algoritma di atas akan memiliki output ….
Correct Answer
D. A A A A A
Explanation
The algorithm initializes a variable f with the value 1. Then, it enters a while loop that continues as long as f is less than or equal to 5. Inside the loop, it prints the letter 'A' and increments f by 1. Therefore, the output of the algorithm will be 'A A A A A'.