Pertanyaan
Suatu program terpisah dalam blok sendiri yang berfungsi sebagai subprogram (program bagian) ,disebut... a. Variabel b. Tipe data c. Prosedur d. Deklarasi e. Array
Solusi
Jawaban
c
Penjelasan
The question is asking about a concept in computer programming. A "program terpisah dalam blok sendiri yang berfungsi sebagai subprogram (program bagian)" translates to "a separate program in its own block that functions as a subprogram (part of the program)." The options given are various programming terms. Let's analyze them:a. Variabel (Variable): In programming, a variable is a storage location paired with an associated symbolic name, which contains some known or unknown quantity or information, a value. It does not match the definition of a separate program block.b. Tipe data (Data Type): This is a classification identifying one of various types of data, such as integer, floating-point, string, etc., that determines the possible values for that type, the operations that can be done on that type, and the way it is stored. It's not a separate program block.c. Prosedur (Procedure): In programming, a procedure is a set of coded instructions that tell a computer how to run a program or calculation. Many programming languages use a procedure as a separate block of code that can be called from the main or other programs. This fits the definition of a separate program in its own block functioning as a subprogram.d. Deklarasi (Declaration): In programming, a declaration is a statement describing an identifier, such as the name of a variable or a function. While it's an important part of programming, it doesn't represent a separate block of program.e. Array: An array in programming is a data structure consisting of a collection of elements, each identified by at least one array index or key. An array doesn't fit the description of a separate program block that functions as a subprogram.Therefore, the correct term that matches the definition of a separate program in its own block functioning as a subprogram is "Prosedur" (Procedure).