Quiz Uts Pemrograman Dasar

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
| By Rioandriyat
R
Rioandriyat
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,268
Questions: 30 | Attempts: 1,270

SettingsSettingsSettings
Quiz Uts Pemrograman Dasar - Quiz


Questions and Answers
  • 1. 

    Perangkat lunak yang bertugas mengkonversikan arsitektur dan algoritma yang dirancang manusia kedalam format yang dapat dijalankan computer disebut ….

    • A.

      System Operasi

    • B.

      Spreedsheet

    • C.

      Software Utility

    • D.

      Bahasa Pemrograman

    Correct Answer
    D. Bahasa Pemrograman
    Explanation
    A software utility is a program that performs a specific task or set of tasks to assist in the management and optimization of a computer system. A spreadsheet is a software application that allows users to organize, analyze, and manipulate data in tabular form. System operasi refers to an operating system, which is a software that manages computer hardware and software resources and provides common services for computer programs. Bahasa pemrograman, on the other hand, refers to a programming language, which is used to write instructions that can be executed by a computer. Therefore, the correct answer is bahasa pemrograman because it is the software that converts human-designed architecture and algorithms into a format that can be executed by a computer.

    Rate this question:

  • 2. 

    Perintah kepada komputer dengan memakai kode bahasa biner, contohnya 01100101100110 disebut dengan

    • A.

      Bahasa Pemrograman

    • B.

      Bahasa Indonesia

    • C.

      Bahasa Tingkat Tinggi

    • D.

      Bahasa Mesin

    Correct Answer
    D. Bahasa Mesin
    Explanation
    The given answer, "Bahasa Mesin," is the correct answer because it translates to "Machine Language" in English. The question is asking for the command to the computer using binary language, which is the language understood by the computer directly. Machine language is the lowest-level programming language that directly communicates with the computer's hardware, using binary code consisting of 0s and 1s.

    Rate this question:

  • 3. 

    Langkah-langkah logis penyelesaian masalah yang disusun secara sistematis dan logis disebut dengan

    • A.

      Flowchart

    • B.

      Bahasa Komputer

    • C.

      Bahasa Pemrograman

    • D.

      Algoritma

    Correct Answer
    D. Algoritma
    Explanation
    Algoritma adalah langkah-langkah logis penyelesaian masalah yang disusun secara sistematis dan logis. Algoritma merupakan urutan instruksi yang terstruktur dan dapat diikuti untuk menyelesaikan suatu masalah. Dalam algoritma, setiap langkah harus jelas dan terdefinisi dengan baik, sehingga dapat dijalankan oleh komputer atau manusia. Algoritma dapat digambarkan menggunakan flowchart atau dituliskan dalam bahasa pemrograman.

    Rate this question:

  • 4. 

    Bagan (chart) yang menunjukkan alir (flow) di dalam program atau prosedur sistem secara logika. Bagan alir digunakan terutama untuk alat bantu komunikasi dan untuk dokumentasi. disebut dengan?

    • A.

      Flowmap

    • B.

      FlowDiagram

    • C.

      Data Flow

    • D.

      Flowchart

    Correct Answer
    D. Flowchart
    Explanation
    The correct answer is flowchart. A flowchart is a diagram that represents the flow or sequence of steps in a program or system procedure. It is commonly used as a visual tool for communication and documentation purposes.

    Rate this question:

  • 5. 

    Simbol Flowchart diatas digunakan untuk

    • A.

      Proses

    • B.

      Inisialisasi

    • C.

      Alur Data

    • D.

      Start/akhir

    Correct Answer
    D. Start/akhir
    Explanation
    The given flowchart symbol is used to represent the start and end points of a process or algorithm. It indicates the beginning and the completion of a task or a program. This symbol is commonly used in flowcharts to mark the starting and ending points of a process or a series of steps.

    Rate this question:

  • 6. 

    Simbol Flowchart diatas memiliki fungsi....?

    • A.

      End

    • B.

      Start

    • C.

      Alir Data

    • D.

      Proses

    Correct Answer
    D. Proses
    Explanation
    The given flowchart symbol represents the "Proses" or process function. In a flowchart, the process symbol is used to depict a specific action or operation that needs to be performed. It indicates a step in the flowchart where some form of data manipulation or transformation takes place. In this case, the flowchart is showing that the process function is the function being represented by the symbol.

    Rate this question:

  • 7. 

    Nama lain dari flowchart adalah ….

    • A.

      Alur

    • B.

      Algoritma

    • C.

      Tree

    • D.

      Diagram Alir

    Correct Answer
    D. Diagram Alir
    Explanation
    Flowchart adalah suatu alat visual yang digunakan untuk merepresentasikan alur atau urutan langkah-langkah dalam suatu proses. Diagram Alir adalah istilah lain yang digunakan untuk menyebut flowchart. Dalam diagram alir, langkah-langkah proses diwakili oleh simbol-simbol grafis yang terhubung dengan panah, sehingga memudahkan pemahaman dan analisis proses yang sedang dilakukan.

    Rate this question:

  • 8. 

    Nama Simbol Flowchart disamping adalah

    • A.

      Data

    • B.

      Garis Proses

    • C.

      Garis Data

    • D.

      Garis Alir

    Correct Answer
    D. Garis Alir
    Explanation
    The correct answer is "Garis Alir" because in a flowchart, the symbol next to the question represents the flow of the process or the sequence of steps to be followed. It visually represents the direction in which the data or information flows within the flowchart. Therefore, "Garis Alir" is the appropriate term for this symbol.

    Rate this question:

  • 9. 

    Keunggulan dan banyak yang menngunakan Bahasa C, kecuali...... 

    • A.

      Bahasa C hanya menyediakan sedikit kata kunci sehingga mudah dipahami

    • B.

      Kode bahasa C Sifatnya adalah portable(MultiPlatfoarm)

    • C.

      Bahasa C tersedia di hamper semua jenis computer

    • D.

      Membantu Manusia

    Correct Answer
    D. Membantu Manusia
    Explanation
    The given answer states that "Membantu Manusia" (Helping Humans) is the exception to the advantages and widespread use of the C language. This implies that the C language does not help humans or has limitations in assisting them in some way. However, without further context or information, it is difficult to determine the exact meaning or reasoning behind this exception.

    Rate this question:

  • 10. 

    Langkah yang tepat dalam membuat bahasa pemrograman C adalah... 

    • A.

      Menulis Kode Program (Psedecode),Mengubah kode program (Compiler),Melakukan Pengujian Kode Program (Salah/benar)(Debuging),Menjalankan program (Running)

    • B.

      Mengubah kode program (Compiler),Melakukan Pengujian Kode Program (Salah/benar)(Debuging),Menjalankan program (Running),Menulis Kode Program (Psedecode)

    • C.

      Mengubah kode program (Compiler),Menulis Kode Program (Psedecode),Melakukan Pengujian Kode Program (Salah/benar)(Debuging),Menjalankan program (Running)

    • D.

      Mengubah kode program (Compiler),Menulis Kode Program (Psedecode),Melakukan Pengujian Kode Program (Salah/benar)(Debuging)

    Correct Answer
    A. Menulis Kode Program (Psedecode),Mengubah kode program (Compiler),Melakukan Pengujian Kode Program (Salah/benar)(Debuging),Menjalankan program (Running)
    Explanation
    The correct answer is "Menulis Kode Program (Psedecode),Mengubah kode program (Compiler),Melakukan Pengujian Kode Program (Salah/benar)(Debuging),Menjalankan program (Running)". This sequence represents the correct steps in creating a C programming language. First, the programmer needs to write the program code using pseudocode. Then, they need to convert the program code using a compiler. After that, they need to test the program code for errors and correctness through debugging. Finally, they can run the program to see its output.

    Rate this question:

  • 11. 

    Tools yang paling tepat, yang bisa digunakan untuk membatu dalam membuat bahasa pemrograman C, dan juga mengcompile sourcecode nya adalah

    • A.

      Turbo C++

    • B.

      Netbeans

    • C.

      Dreamweaver

    • D.

      Notepad++

    Correct Answer
    A. Turbo C++
    Explanation
    Turbo C++ is the most suitable tool for creating and compiling C programming language source code. It is specifically designed for C and C++ programming, providing a user-friendly integrated development environment (IDE) that includes a compiler. Turbo C++ offers features such as code highlighting, debugging tools, and a comprehensive library. It allows programmers to write, edit, compile, and run C programs efficiently. Netbeans, Dreamweaver, and Notepad++ are not specifically designed for C programming and may lack the necessary features and capabilities required for developing and compiling C programs.

    Rate this question:

  • 12. 

    File header dari C++ adalah?

    • A.

      { ....}

    • B.

      Void main()

    • C.

      #include

    • D.

      Printf

    Correct Answer
    C. #include
    Explanation
    The given code snippet is a representation of a C++ program. In C++, the #include directive is used to include header files in the program. These header files contain pre-defined functions and definitions that are required for the program to compile and run successfully. Therefore, the correct answer for the file header in C++ is #include.

    Rate this question:

  • 13. 

    Peirntah pemrograman C++ yang digunakan untuk mencetak perintah ke layar adalah

    • A.

      Scanf

    • B.

      %d

    • C.

      Printf

    • D.

      %c

    Correct Answer
    C. Printf
    Explanation
    The correct answer is "printf" because it is a C++ programming function used to print or display output on the screen. It is commonly used to print variables, strings, and other data types in the console window.

    Rate this question:

  • 14. 

    Perintah yang Merupakan awal program utama dari C++ adalah

    • A.

      #include

    • B.

      Main()

    • C.

      { .....}

    • D.

      Scanf

    Correct Answer
    B. Main()
    Explanation
    The correct answer is "main()". In C++, the main() function is the entry point of a program. It is where the program starts executing. The main() function can be identified by its name and the parentheses. It is required in every C++ program and serves as the starting point for the execution of the program's code.

    Rate this question:

  • 15. 

    Yang merupakan baris komentar di C++ dituliskan seperti berikut:....

    • A.

      //---------------- //

    • B.

      Printf("............");

    • C.

      Scanf("........");

    • D.

      { ............. }

    Correct Answer
    A. //---------------- //
    Explanation
    The given code segment is an example of a comment in C++. In C++, comments are used to add explanatory notes or disable certain lines of code. In this case, the comment is indicated by the double forward slashes (//) followed by the comment text. The comment text in this code segment is "---------------- //". Comments are ignored by the compiler and do not affect the execution of the program.

    Rate this question:

  • 16. 

    Nama yang biasa digunakan untuk variabel, konstanta, fungsi atau objek lain yang didefinisikan oleh pemrogram, disebut dengan

    • A.

      Variabel

    • B.

      Identifier

    • C.

      Konstanta

    • D.

      Tipe data

    Correct Answer
    B. Identifier
    Explanation
    The correct answer is "identifier". An identifier is a name that is commonly used for variables, constants, functions, or other objects defined by a programmer. It is used to uniquely identify these entities within a program and allows the programmer to refer to them when writing code.

    Rate this question:

  • 17. 

    Cheklist pilihan yang tepat.Dibawah ini yang merupakan aturan penulisan identifier adalah..... 

    • A.

      Diawali huruf A...Z, a...z atau garis bawah (_)

    • B.

      Diawali dengan angka

    • C.

      Tidak boleh diawali dengan angka

    • D.

      Boleh menggunakan +,-,/

    • E.

      Tidak boleh menggunakan operator

    Correct Answer(s)
    A. Diawali huruf A...Z, a...z atau garis bawah (_)
    C. Tidak boleh diawali dengan angka
    E. Tidak boleh menggunakan operator
    Explanation
    Identifiers are names given to variables, functions, classes, or any other user-defined item in a programming language. The given answer states that identifiers should start with a letter (A...Z, a...z) or an underscore (_), and should not start with a number. Additionally, it mentions that identifiers should not use operators. This means that identifiers cannot use symbols like +, -, or /. Therefore, the given answer correctly identifies the rules for writing identifiers.

    Rate this question:

  • 18. 

    Menyimpan suatu nilai tertentu dimana nilai tersebut dapat diubah-ubah, disebut dengan....

    • A.

      Variabel

    • B.

      Tipe Data

    • C.

      Identifier

    • D.

      Flowchart

    Correct Answer
    A. Variabel
    Explanation
    A variable is used to store a specific value that can be changed. It is a named memory location that holds data. In programming, variables are used to store and manipulate data during the execution of a program. They are essential for performing calculations, storing user input, and keeping track of program state.

    Rate this question:

  • 19. 

    Pilihlah yang paling tepatberikut ini penulisan variabel yang tepat adalah....

    • A.

      Int a;

    • B.

      Int 7;

    • C.

      Char r;

    • D.

      Int a=7;

    • E.

      A int;

    Correct Answer(s)
    A. Int a;
    C. Char r;
    D. Int a=7;
    Explanation
    The correct answer is "int a;,char r;,int a=7;". This is because it follows the correct syntax for declaring variables in C++. The first line declares an integer variable named "a", the second line declares a character variable named "r", and the third line declares another integer variable named "a" and assigns it the value of 7.

    Rate this question:

  • 20. 

    Tipe data berupa karakter dan memiliki jumlah bit sebanyak 8, disebut dengan tipe data.....

    • A.

      Int

    • B.

      String

    • C.

      Char

    • D.

      Boolean

    Correct Answer
    C. Char
    Explanation
    The correct answer is "char" because a data type that consists of characters and has a bit size of 8 is commonly referred to as a "char" data type.

    Rate this question:

  • 21. 

    Tipe data bilangan pecahan ( pecahan persisi tunggal ) dan memiliki jumlah bit sebanyak 32. disebut dengan tipe data....

    • A.

      Float

    • B.

      Int

    • C.

      Char

    • D.

      String

    Correct Answer
    A. Float
    Explanation
    The correct answer is float because a float data type is used to represent decimal numbers (fractional numbers) with single precision, which means it has a size of 32 bits.

    Rate this question:

  • 22. 

    Digunakan untuk mengatur jalannya alur program sesuai dengan yang kita inginkan, disebut dengan

    • A.

      Statement control

    • B.

      Statemen

    • C.

      Kondisi

    • D.

      Perulangan

    Correct Answer
    A. Statement control
    Explanation
    Statement control digunakan untuk mengatur jalannya alur program sesuai dengan yang kita inginkan. Ini berarti bahwa dengan menggunakan statement control, kita dapat menentukan bagaimana program akan berjalan, apakah akan melanjutkan ke pernyataan berikutnya, melakukan perulangan, atau melakukan tindakan berdasarkan kondisi yang diberikan. Dengan menggunakan statement control, kita dapat membuat program yang lebih fleksibel dan dapat mengambil keputusan berdasarkan situasi yang ada.

    Rate this question:

  • 23. 

    Menentukan statemen mana yang akan dieksekusi tergantung dari ekspresi atau kondisi yang didefenisikan, disebut dengan statement

    • A.

      Statement pemilihan

    • B.

      Statement Control

    • C.

      Operator

    • D.

      Logika

    Correct Answer
    A. Statement pemilihan
    Explanation
    The given correct answer, "Statement pemilihan," refers to the process of determining which statement or block of code will be executed based on a defined expression or condition. This is commonly known as a selection statement or conditional statement. It allows the program to make decisions and choose different paths of execution based on certain conditions.

    Rate this question:

  • 24. 

    Statement FOR digunakan untuk

    • A.

      Logika

    • B.

      Seleksi Kondisi

    • C.

      Perulangan

    • D.

      Penyeleksian

    Correct Answer
    C. Perulangan
    Explanation
    The statement "FOR" is used for looping or repetition in programming. It allows a certain block of code to be executed repeatedly for a specified number of times. This is commonly used when there is a need to perform a task multiple times, such as iterating through a list of items or executing a set of instructions for a fixed number of iterations. Therefore, the correct answer is "Perulangan" which translates to "Looping" in English.

    Rate this question:

  • 25. 

    Terdapat kode program seperti berikut :#include<stdio.h>void main(){.............printf("Berapa Usia Kamu = ");scanf("%d",&a);if(a<17){    printf("Kamu Tidak Boleh Begadang");}else {    printf("Kamu Boleh Begadang");}}Kode program untuk melengkapi ..... di atas adalah....

    • A.

      Char a;

    • B.

      Int a;

    • C.

      Float a;

    • D.

      String [a];

    Correct Answer
    B. Int a;
    Explanation
    The correct answer is "int a;". This is because the variable "a" is used to store the age of the person, and age is typically represented as an integer. Therefore, the correct data type for the variable "a" in this program is "int".

    Rate this question:

  • 26. 

    Perhatikan kode program dibawah ini : #include<stdio.h>void main(){int a;printf("Program perulangan for");    .......................................................    {        printf("\nHello Perulangan %d",a);    }}kode program yang tepat untuk melengkapi .... di atas adalah 

    • A.

      For(a++)

    • B.

      For (a=1; a

    • C.

      For(a=5;

    • D.

      For (a=1; a

    Correct Answer
    B. For (a=1; a
    Explanation
    The correct answer is "for (a=1; a < 5; a++)". This is the correct syntax for a for loop in C programming. It initializes the variable 'a' to 1, sets the condition that 'a' should be less than 5, and increments 'a' by 1 after each iteration. Therefore, this loop will repeat 4 times, printing "Hello Perulangan" followed by the value of 'a'.

    Rate this question:

  • 27. 

    Perhatikan kode program dibawah ini :#include<stdio.h>void main(){int angka,batas;printf("Program perulangan cetak angka Genap dari input for\n");printf("Masukan Batasan Angka = ");scanf("%d",&batas);    for (angka=0; angka<=batas; angka++)    {        ......................................            {                printf("\n angka %d",angka);            }    }}Kode program untuk melengkapi ................... di atas adalah

    • A.

      If(angka);

    • B.

      For(a)

    • C.

      If(angka%2==0)

    • D.

      If(angka 2==0)

    Correct Answer
    C. If(angka%2==0)
    Explanation
    The correct answer is "if(angka%2==0)". This is because the code is meant to print even numbers within the given limit. The condition "angka%2==0" checks if the value of "angka" is divisible by 2, which indicates an even number. If the condition is true, the code inside the if statement will be executed, which includes printing the value of "angka".

    Rate this question:

  • 28. 

    Perhatikan kode program dibawah ini : #include<stdio.h>void main(){int a;printf("Berapa Usia Kamu = ");....................................if(a<17) //*Jika Usia Kurang dari 17, maka**//{    printf("Kamu Tidak Boleh Begadang");}}Kode program yang tepat untuk mengisi ......................... di atas adalah 

    • A.

      Scanf("%d",&a)

    • B.

      Scanf("%f",&a);

    • C.

      Scanf("%c",&a);

    • D.

      Scanf("%d",&a);

    Correct Answer
    D. Scanf("%d",&a);
    Explanation
    The correct answer is scanf("%d",&a); because the code is asking for the user's age, which is an integer value. The "%d" format specifier is used to read an integer value from the user input, and the "&a" is used to store the input value in the variable "a".

    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 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 01, 2016
    Quiz Created by
    Rioandriyat
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.