1.
Nilai P=0, Q=5, R=10 jika diketahui nilai PQR adalah seperti yang tersebut dan algoritmanya adalah nilai P=Q, Q=R maka nilai PQR adalah?
Correct Answer
A. P=5, Q=10, R=10
Explanation
The algorithm states that the value of P is equal to the value of Q, and the value of Q is equal to the value of R. Therefore, if P=Q and Q=R, then the value of P, Q, and R should be the same. In the given options, only option P=5, Q=10, R=10 satisfies this condition, as both P and Q are equal to 10, and R is also equal to 10.
2.
Kata Algortima berasal dari nama Abu Ja’far Mohammed Ibn Musa al-Khowarizmi merupakan seorang ilmuan yang menulis kitab al jabr w’al-muqobala. Beliau merupakan seorang berkebangsaan …
Correct Answer
B. Persia
Explanation
The correct answer is Persia because the question states that the word "algorithm" originates from the name Abu Ja'far Mohammed Ibn Musa al-Khowarizmi, who was a Persian scientist. This suggests that the correct answer is Persia, as al-Khowarizmi's nationality was Persian.
3.
- 1. Menulis Surat
- 2. Surat dimasukkan kedalam amplop tertutup
- 3. Amplop ditempeli perangko secukupnya
- 4. Pergi Ke Kantor Pos terdekat untuk mengirimkannya
Algoritma diatas merupakan algoritma
Correct Answer
C. Mengirim Surat
Explanation
The given correct answer is "Mengirim Surat". The algorithm mentioned in the question describes the steps involved in sending a letter. The first step is to write the letter, then put it in a sealed envelope. The next step is to affix the necessary postage stamps on the envelope. Finally, the letter is sent by going to the nearest post office. Therefore, the correct answer "Mengirim Surat" accurately represents the final step in the algorithm, which is sending the letter.
4.
Algoritma yang mempunyai fungsi mempertukarkan masing-masing isi variabel sedemikian sehingga nilai dari setiap variabel akan bertukar merupakan konsep …
Correct Answer
D. Algoritma Pertukaran
Explanation
The correct answer is "Algoritma Pertukaran". This is because the question is asking for the concept of an algorithm that swaps the values of variables. "Algoritma Pertukaran" translates to "Swap Algorithm" in English, which accurately describes the concept being referred to.
5.
Diketahui 2 Peubah K = 10 dan L = 20. Jika satu buah peubah variabel dikodekan dengan T maka langkah yang tepat untuk mempertukarkan isi K dan L adalah …
Correct Answer
B. T = K, K = L, L = T
Explanation
K = 10 dan L = 20 ditambah T = 0
Nilai T di isi Nilai dari K sehingga T = K, T = 10 dan K = 0
Nilai K di isi Nilai dari L sehingga K = L, K = 20 dan L = 0
Nilai L di isi Nilai dari T sehingga L = T, L = 10 dan T = 0
Sehingga nilai akhir K = 20 dan L = 10 dan T = 0 maka nilai K dan L sudah bertukar
6.
Suatu besaran yang dapat diubah atau berubah sehingga mempengaruhi peristiwa atau hasil penelitian disebut dengan …
Correct Answer
A. Variabel
Explanation
A variable is a quantity or factor that can be changed or varied in a way that affects an event or the outcome of a research study. In research, variables are manipulated or measured to determine their impact on the dependent variable. Therefore, a variable fits the definition provided in the question.
7.
Berikut ini merupakan tipe dari bilangan real …
Correct Answer
D. Single dan Double
Explanation
The correct answer is "Single dan Double". This is because Single and Double are both types of real numbers in programming. Single is a 32-bit floating-point number, while Double is a 64-bit floating-point number. Both types can represent decimal numbers with varying precision and range. Integer and Long, on the other hand, are types of whole numbers without decimal points. Therefore, the combination of Single and Double represents the correct types of real numbers.
8.
Contoh penggunaan tipe data Boolean …
Correct Answer
E. Laki-Laki, Perempuan
Explanation
The given answer "Laki-Laki, Perempuan" suggests that the question is asking for the possible values of a Boolean data type. However, the given options are not valid Boolean values as they represent gender categories. Therefore, the question is incomplete or not properly formatted, and it is not possible to provide a valid explanation for the given answer.
9.
Dari suatu algoritma berbunyi $x % $y, jika x bernilai 6 dan y bernilai 4 maka hasil dari algoritma tersebut adalah …
Correct Answer
B. 2
Explanation
Algoritma $x % $y
x bernilai 6 dan y bernilai 4 atau x = 6 dan y=4
6 % 4 atau 6 MOD 4 (Karena tanda 5 dipemrograman merupakan lambah operator SISA HASIL BAGI)
6 dibagi 4 adalah 1 dan SISA HASIL BAGINYA adalah 2
10.
Dalam Operator Relasi pernyataan 17 < 13 akan bernilai …
Correct Answer
D. False
Explanation
Dalam operasi relasi angka 17 bukan lebih kecil dari 13, karena bukan maka pernyataan tersebut bernilai SALAH atau FALSE
11.
- 1. Start
- 2. Input Panjang
- 3. Input Lebar
- 4. Luas = panjang x Lebar
- 5. Print Luas
- 6. End
dari urutan pseudocode diatas dapat dianalisa bahwa
Correct Answer
A. Penulisan Variabel panjang salah
Explanation
The explanation for the given correct answer is that the pseudocode provided has a mistake in the variable name "panjang". It should be corrected to "Panjang" to match the correct capitalization. The pseudocode represents the calculation of the area of a rectangle, where the area is equal to the length multiplied by the width. The pseudocode consists of 6 steps, starting with inputting the length and width, calculating the area, and printing the result. The answer correctly identifies the mistake in the variable name.
12.
Diagram dengan simbol-simbol yang menyatakan aliran atau proses langkah-langkah yang disimbolkan dalam bentuk tertentu disebut dengan …
Correct Answer
C. Diagram alir
Explanation
A diagram alir is a diagram that uses symbols to represent the flow or sequence of steps in a process. It visually represents the steps or actions that need to be taken in a specific order to achieve a desired outcome. This type of diagram is commonly used in various fields such as computer programming, business process management, and problem-solving. It helps to provide a clear and organized representation of the steps involved in a process, making it easier to understand and follow.
13.
Perhatikan pernyataan berikut ini!Jika nilai ujian lebih besar atau sama dengan 75, maka ujian dinyatakan lulus tetapi jika nilai ujian kurang dari 75, maka ujian dinyatakan gagalYang merupakan kondisi 2 dan pernyataan 1 adalah …
Correct Answer
D. Jika nilai ujian kurang dari 75 | maka ujian dinyatakan lulus
14.
Simbol yang merupakan pengambilan keputusan dalam suatu kondisi tertentu dilambangkan dengan …
Correct Answer
E.
Explanation
Simbol yang digunakan untuk pengambilan keputusan dalam suatu kondisi tertentu adalah simbol "if".
15.
Gambar disamping pernyataan yang bisa diambil …
Correct Answer
C. Jika B tidak lebih besar dari A maka akan tercetak B
Explanation
The correct answer is based on the given statements: "Jika B tidak lebih besar dari A maka akan tercetak B." This means that if B is not greater than A, then B will be printed.
16.
Gambar berikut ini merupakan alur yang sesuai untuk menentukan bilangan ganjil genap adalah …
Correct Answer
A.
17.
Dari pernyataan disamping merupakan salah satu pernyataan bertipe …
Correct Answer
A. Bersarang
Explanation
The given statement "dari pernyataan disamping merupakan salah satu pernyataan bertipe bersarang" suggests that the statement is of the type "bersarang" or "nested". This means that the statement contains one or more statements within it, creating a nested structure.
18.
Yang merupakan ekspresi boolean 1 kondisi dan 1 pernyataan …
Correct Answer
A. Jika hari hujan maka saya tidak keluar rumah
Explanation
The given answer is the correct one because it follows the structure of a boolean expression with one condition (Jika hari hujan) and one statement (maka saya tidak keluar rumah). The condition states that if it is raining, then the person will not leave the house. This is a valid boolean expression as it follows the format of "if [condition] then [statement]".
19.
Ekspresi yang hasil ekspresinya bernilai true dan false disebut dengan …
Correct Answer
B. Boolean
Explanation
An expression that evaluates to both true and false is called a boolean expression. In programming, boolean expressions are commonly used in conditional statements to determine the flow of a program. They can be used to compare values, check conditions, or perform logical operations. The boolean data type represents two possible values: true and false. Therefore, the correct answer for this question is "boolean".
20.
Operator yang digunakan untuk melakukan operasi penjumlahan, pengurangan, pembagian, dan perkalian disebut dengan operator …
Correct Answer
E. Aritmatika
Explanation
The correct answer is "Aritmatika". The question asks for the operator used for addition, subtraction, division, and multiplication. The term "Aritmatika" is the Indonesian word for "Arithmetic", which is the branch of mathematics that deals with these operations.