Soal Pemrograman Dasar Kelas X

By Andi Saputro
Andi Saputro, Multimedia
Andi, an enthusiastic multimedia teacher in Karanganyar, Central Java, Indonesia, is committed to pioneering innovative educational practices. Focused on cultivating and sharing knowledge to benefit both colleagues and the broader educational community, Andi thrives on making a meaningful impact through dedication and creativity.
Quizzes Created: 3 | Total Attempts: 9,902
, Multimedia
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.
Learn about Our Editorial Process
Pertanyaan: 20 | Attempts: 6,610

SettingsSettingsSettings
Soal Pemrograman Dasar Kelas X - Quiz

Konsep AlgoritmaStruktur AlgoritmaVariabelTipe DataFlowchart


Questions and Answers
  • 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?

    • A.

      P=5, Q=10, R=10

    • B.

      P=0, Q=10, R=10

    • C.

      P=5, Q=5, R=10

    • D.

      P=5, Q=10, R=15

    • E.

      P=0, Q=5, R=10

    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.

    Rate this question:

  • 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 …

    • A.

      Amerika

    • B.

      Persia

    • C.

      Suriah

    • D.

      Saudi Arabia

    • E.

      Iran

    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.

    Rate this question:

  • 3. 

    1. 1. Menulis Surat
    2. 2. Surat dimasukkan kedalam amplop tertutup
    3. 3. Amplop ditempeli perangko secukupnya
    4. 4. Pergi Ke Kantor Pos terdekat untuk mengirimkannya
    Algoritma diatas merupakan algoritma

    • A.

      Menulis Surat

    • B.

      Menulis Surat Ke Kantor Pos

    • C.

      Mengirim Surat

    • D.

      Pergi ke kantor mengirim sesuatu

    • E.

      Menempel amplop dengan perangko

    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.

    Rate this question:

  • 4. 

    Algoritma yang mempunyai fungsi mempertukarkan masing-masing isi variabel sedemikian sehingga nilai dari setiap variabel akan bertukar merupakan konsep …

    • A.

      Variabel Algoritma

    • B.

      Fungsi Algoritma

    • C.

      Algoritma

    • D.

      Algoritma Pertukaran

    • E.

      Algoritma Peubah

    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.

    Rate this question:

  • 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 …

    • A.

      T = K, K = L, T = L

    • B.

      T = K, K = L, L = T

    • C.

      K = L, T = K, T = L

    • D.

      K = L, K = T, T = L

    • E.

      T = K, T = L, T = K

    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

    Rate this question:

  • 6. 

    Suatu besaran yang dapat diubah atau berubah sehingga mempengaruhi peristiwa atau hasil penelitian disebut dengan …

    • A.

      Variabel

    • B.

      Fungsi

    • C.

      Algoritma

    • D.

      Penukar

    • E.

      Peubah

    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.

    Rate this question:

  • 7. 

    Berikut ini merupakan tipe dari bilangan real …

    • A.

      Integer dan long

    • B.

      Integer dan Single

    • C.

      Long dan Single

    • D.

      Single dan Double

    • E.

      Double dan Integer

    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.

    Rate this question:

  • 8. 

    Contoh penggunaan tipe data Boolean …

    • A.

      17 Tahun

    • B.

      Superman

    • C.

      Siswa

    • D.

      Algoritma

    • E.

      Laki-Laki, Perempuan

    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.

    Rate this question:

  • 9. 

    Dari suatu algoritma berbunyi $x % $y, jika x bernilai 6 dan y bernilai 4 maka hasil dari algoritma tersebut adalah …

    • A.

      1

    • B.

      2

    • C.

      4

    • D.

      6

    • E.

      1,5

    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

    Rate this question:

  • 10. 

    Dalam Operator Relasi pernyataan 17 < 13 akan bernilai …

    • A.

      13 bukan lebih besar dari 17

    • B.

      17 > 13

    • C.

      13 bukan lebih besar dari 17

    • D.

      False

    • E.

      17 bukan lebih kecil dari 13

    Correct Answer
    D. False
    Explanation
    Dalam operasi relasi angka 17 bukan lebih kecil dari 13, karena bukan maka pernyataan tersebut bernilai SALAH atau FALSE

    Rate this question:

  • 11. 

    1. 1. Start
    2. 2. Input Panjang
    3. 3. Input Lebar
    4. 4. Luas = panjang x Lebar
    5. 5. Print Luas
    6. 6. End
    dari urutan pseudocode diatas dapat dianalisa bahwa

    • A.

      Penulisan Variabel panjang salah

    • B.

      Luas merupakan Panjang dikalikan Lebar

    • C.

      Merupakan pseudocode dari persegi panjang

    • D.

      Pseudocode terdiri dari 4 langkah

    • E.

      Hasil Luas Persegi adalah Luas

    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.

    Rate this question:

  • 12. 

    Diagram dengan simbol-simbol yang menyatakan aliran atau proses langkah-langkah yang disimbolkan dalam bentuk tertentu disebut dengan …

    • A.

      Algoritma

    • B.

      Flowcard

    • C.

      Diagram alir

    • D.

      Alur

    • E.

      Pseudocode

    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.

    Rate this question:

  • 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 … 

    • A.

      Jika nilai ujian lebih besar atau sama dengan 75 | maka ujian dinyatakan lulus

    • B.

      Jika nilai ujian lebih besar atau sama dengan 75 | maka ujian dinyatakan gagal

    • C.

      Ujian dinyatakan gagal apabila nilai ujian kurang dari 75

    • D.

      Jika nilai ujian kurang dari 75 | maka ujian dinyatakan lulus

    • E.

      Ujian dinyatakan lulus apabila nilai ujian yang dicapai lebih besar atau sama dengan 75

    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".

    Rate this question:

  • 15. 

    Gambar disamping pernyataan yang bisa diambil …

    • A.

      Jika A > B bernilai benar maka akan tercetak A dan B

    • B.

      Jika A > B bernilai salah maka akan tercetak A dan B

    • C.

      Jika B tidak lebih besar dari A maka akan tercetak B

    • D.

      Jika A lebih besar dari B maka akan tercetak B

    • E.

      Jika B lebih kecil dari A maka akan tercetak A

    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.

    Rate this question:

  • 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 …

    • A.

      Bersarang

    • B.

      Algoritma teks

    • C.

      Operasi boolean

    • D.

      Operasi rasional

    • E.

      Pseudocode

    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.

    Rate this question:

  • 18. 

    Yang merupakan ekspresi boolean 1 kondisi dan 1 pernyataan …

    • A.

      Jika hari hujan maka saya tidak keluar rumah

    • B.

      Karena hari hujan kegiatan merangkai rangkaian WAN tetap dilanjutkan dengan menggunakan peralatan yang lebih canggih dan karena mengejar deadline tugas pak guru yang sudah tugaskan

    • C.

      Daripada hari minggu tidak ada kegiatan lebih baik mencari kegiatan dengan memancing

    • D.

      D. Jika mendapat nilai kurang dari 75 dan sudah remidi masih kurang 75 maka remidi lagi sampai memenuhi nilai minimal KKM

    • E.

      E. Jika membeli mouse jangan lupa laptop dan modemnya, biasanya penjual juga menyertakan flashdisk sebagai bonusnya

    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]".

    Rate this question:

  • 19. 

    Ekspresi yang hasil ekspresinya bernilai true dan false disebut dengan …

    • A.

      Bersarang

    • B.

      Boolean

    • C.

      Integer

    • D.

      Operator

    • E.

      Aritmatika

    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".

    Rate this question:

  • 20. 

    Operator yang digunakan untuk melakukan operasi penjumlahan, pengurangan, pembagian, dan perkalian disebut dengan operator …

    • A.

      Bersarang

    • B.

      Bertipe sama

    • C.

      Bertipe beda

    • D.

      Operator

    • E.

      Aritmatika

    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.

    Rate this question:

Andi Saputro |Multimedia
Andi, an enthusiastic multimedia teacher in Karanganyar, Central Java, Indonesia, is committed to pioneering innovative educational practices. Focused on cultivating and sharing knowledge to benefit both colleagues and the broader educational community, Andi thrives on making a meaningful impact through dedication and creativity.

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
  • Dec 01, 2014
    Quiz Created by
    Andi Saputro
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.