Quiz Uts Pemrograman Dasar

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Rioandriyat
R
Rioandriyat
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,354
| Attempts: 1,356 | Pertanyaan: 30
Please wait...

Question 1 / 30
0 %
0/100
Score 0/100
1. 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?

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.

Submit
Please wait...
About This Quiz
Quiz Uts Pemrograman Dasar - Quiz

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

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.

Submit
3. Simbol Flowchart diatas memiliki fungsi....?

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.

Submit
4. Nama lain dari flowchart adalah ….

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.

Submit
5. perintah kepada komputer dengan memakai kode bahasa biner, contohnya 01100101100110 disebut dengan

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.

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

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.

Submit
7. menentukan statemen mana yang akan dieksekusi tergantung dari ekspresi atau kondisi yang didefenisikan, disebut dengan statement

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.

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

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.

Submit
9. Nama Simbol Flowchart disamping adalah

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.

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

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.

Submit
11. menyimpan suatu nilai tertentu dimana nilai tersebut dapat diubah-ubah, disebut dengan....

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.

Submit
12. digunakan untuk mengatur jalannya alur program sesuai dengan yang kita inginkan, disebut dengan

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.

Submit
13. yang merupakan baris komentar di C++ dituliskan seperti berikut:....

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.

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

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.

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

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.

Submit
16. File header dari C++ adalah?

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.

Submit
17. 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....

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

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

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.

Submit
19. Statement FOR digunakan untuk

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.

Submit
20. Simbol Flowchart diatas digunakan untuk

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.

Submit
21. Cocokan perintah penyimpanan data dibawah ini Format Penyimpanan data/nilai yaitu menyimpan data sementara yang dimasukan kedalam suatu variable. Dalam c++ penyimpanan data dilakukan dengan menggunakan fungsi scanf. Pendelarasian penyimpanan data yaitu sebagai berikut:
Submit
22. perintah yang Merupakan awal program utama dari C++ adalah

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.

Submit
23. 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

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

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

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.

Submit
25. 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 

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

Submit
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 

Explanation

The correct answer is "for (a=1; a

Submit
27. nama yang biasa digunakan untuk variabel, konstanta, fungsi atau objek lain yang didefinisikan oleh pemrogram, disebut dengan

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.

Submit
28. Cocokan pemanggilan data dibawah iniFormat pemanggilan data adalah penentu format yang akan mengatur penampilan dari argumen/variabel yang terletak pada daftar identifier. Bentuk penentu format antara lain 
Submit
29. Cheklist pilihan yang tepat.Dibawah ini yang merupakan aturan penulisan identifier adalah..... 

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.

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

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.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 22, 2023 +

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
Cancel
  • All
    All (30)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Bagan (chart) yang menunjukkan alir (flow) di dalam program atau...
Peirntah pemrograman C++ yang digunakan untuk mencetak perintah ke...
Simbol Flowchart diatas memiliki fungsi....?
Nama lain dari flowchart adalah ….
Perintah kepada komputer dengan memakai kode bahasa biner, contohnya...
Tools yang paling tepat, yang bisa digunakan untuk membatu dalam...
Menentukan statemen mana yang akan dieksekusi tergantung dari ekspresi...
Langkah-langkah logis penyelesaian masalah yang disusun secara...
Nama Simbol Flowchart disamping adalah
Langkah yang tepat dalam membuat bahasa pemrograman C adalah... 
Menyimpan suatu nilai tertentu dimana nilai tersebut dapat...
Digunakan untuk mengatur jalannya alur program sesuai dengan yang kita...
Yang merupakan baris komentar di C++ dituliskan seperti berikut:....
Perangkat lunak yang bertugas mengkonversikan arsitektur dan algoritma...
Keunggulan dan banyak yang menngunakan Bahasa C, kecuali...... 
File header dari C++ adalah?
Terdapat kode program seperti berikut :#include<stdio.h>void...
Tipe data bilangan pecahan ( pecahan persisi tunggal ) dan memiliki...
Statement FOR digunakan untuk
Simbol Flowchart diatas digunakan untuk
Cocokan perintah penyimpanan data dibawah ini Format Penyimpanan...
Perintah yang Merupakan awal program utama dari C++ adalah
Perhatikan kode program dibawah ini :#include<stdio.h>void...
Tipe data berupa karakter dan memiliki jumlah bit sebanyak 8, disebut...
Perhatikan kode program dibawah ini : #include<stdio.h>void...
Perhatikan kode program dibawah ini : #include<stdio.h>void...
Nama yang biasa digunakan untuk variabel, konstanta, fungsi atau objek...
Cocokan pemanggilan data dibawah iniFormat pemanggilan data adalah...
Cheklist pilihan yang tepat.Dibawah ini yang merupakan aturan...
Pilihlah yang paling tepatberikut ini penulisan variabel yang tepat...
Alert!

Advertisement