1.
Instruksi yang diberikan kepada Komputer agar komputer dapat melaksanakan tugas-tugas tertentu adalah …
Correct Answer
C. C. Program
Explanation
The correct answer is C. Program. The question asks about the instructions given to a computer in order for it to perform specific tasks. These instructions are called programs. Programs are sets of instructions that tell the computer what operations to perform and in what order. They provide the necessary steps for the computer to execute tasks and produce desired outputs.
2.
Dibawah ini yang bukan merupakan bahasa pemrograman adalah ...
Correct Answer
E. E. Ms. Word
Explanation
The given options are all programming languages except for E. Ms. Word, which is a word processing software.
3.
Cara membuka menu File pada program Pascal dapat dilakukan dengan menekan tombol keyboard ...
Correct Answer
A. A. Alt + F
Explanation
To open the File menu in Pascal, you can press the keyboard shortcut Alt + F. This shortcut is commonly used in many programs to access the File menu, allowing users to perform actions such as opening, saving, and printing files. By pressing Alt + F, users can quickly navigate to the File menu without having to use the mouse or navigate through multiple menus.
4.
Cara penulisan judul program pada pascal yang benar adalah ...
Correct Answer
B. B. Program Volume_Balok;
Explanation
The correct answer is B. Program Volume_Balok; because it follows the correct syntax for writing program titles in Pascal. In Pascal, spaces are not allowed in program names, so the correct way to write the program title is by using an underscore (_) to separate the words.
5.
Nilai X dalam rumus X:= 45-2*10;
Correct Answer
D. D. 25
Explanation
The given equation is X:= 45-2*10. To solve this equation, we first multiply 2 by 10, which gives us 20. Then we subtract 20 from 45, which gives us the final value of X as 25. Therefore, the correct answer is D. 25.
6.
Yang termasuk tipe data Numeric adalah ..
Correct Answer
D. D. Jawaban A, B benar
Explanation
The correct answer is D because both Integer and Real are types of numeric data. Integer represents whole numbers, while Real represents decimal numbers. String, on the other hand, is a type of alphanumeric data that represents text. Therefore, options A and B are the correct answers.
7.
Dalam Pascal perintah untuk melihat hasil program adalah
Correct Answer
D. D. Alt + F5
Explanation
In Pascal, the correct command to view the program's output is Alt + F5.
8.
Perintah untuk menjalankan program dalam Pascal adalah …
Correct Answer
B. B. Ctrl + F9
Explanation
The correct answer is B. Ctrl + F9. This is because in Pascal, pressing Ctrl + F9 is the command to compile and run the program.
9.
Bahasa Pascal termasuk bahasa pemrograman tingkat …
Correct Answer
C. C. Tinggi
Explanation
Bahasa Pascal termasuk dalam kategori bahasa pemrograman tingkat tinggi. Bahasa pemrograman tingkat tinggi adalah bahasa yang lebih mudah dipahami oleh manusia dan memiliki fitur yang lebih kompleks dibandingkan dengan bahasa pemrograman tingkat rendah. Bahasa Pascal memiliki sintaks yang lebih sederhana dan lebih mudah dipelajari, sehingga banyak digunakan untuk tujuan pendidikan dan pengembangan perangkat lunak.
10.
Untuk mendeklarasikan variabel dalam bahasa Pascal digunakan kata ...
Correct Answer
E. E. Var
Explanation
The correct answer is "E. Var". In Pascal, the keyword "var" is used to declare variables.
11.
Prosedur atau formula untuk menyelesaikan masalah yang berhubungan dengan pemrograman Komputer secara umum dikenal dengan istilah ...
Correct Answer
B. B. Algoritma
Explanation
The correct answer is B. Algoritma. Algoritma is a procedure or formula used to solve computer programming problems. It is a step-by-step approach that outlines the necessary actions or instructions to be followed in order to solve a problem or perform a task. Algoritma is a fundamental concept in computer programming and is used to design and implement efficient and effective solutions.
12.
Perintah yang digunakan untuk mengawali blok program Pascal adalah …
Correct Answer
C. C. BEGIN
Explanation
The correct answer is C. BEGIN. In Pascal programming language, the BEGIN keyword is used to mark the beginning of a block of code. It is typically followed by an END keyword to mark the end of the block. This block of code can contain multiple statements and is used to group related code together.
13.
Perintah yang digunakan untuk mengakhiri blok program Pascal adalah …
Correct Answer
E. E. END.
Explanation
The correct answer is E. END. In Pascal, the "END." keyword is used to indicate the end of a block of code. It is used to close the main program or a subprogram. This keyword is necessary to properly terminate the program and ensure that all statements are executed correctly.
14.
Yang bukan termasuk Identifier dibawah ini adalah ..
Correct Answer
D. D. Deklarasi
Explanation
The correct answer is D. Deklarasi.
Deklarasi is not an identifier. It is a statement or a construct used in programming languages to declare variables or constants and specify their types. Identifiers, on the other hand, are names used to identify variables, functions, classes, or other programming entities. In the given options, A. Label, B. Konstanta, C. Type, and E. Var are all examples of identifiers as they are used to name and identify different programming entities.
15.
Tipe bilangan bulat dalam bahasa pemrograman Pascal dikenal sebagai ….
Correct Answer
C. C. Integer
Explanation
Tipe bilangan bulat dalam bahasa pemrograman Pascal dikenal sebagai Integer.
16.
Bagian Input Output bila dipakai setelah membaca data kursor akan tetap berada di samping data tersebut adalah …
Correct Answer
B. B. Read
Explanation
After reading the data cursor, the input-output section will remain next to the data because the "Read" operation is used. This operation reads data from the cursor and does not move the cursor to the next line or position. Therefore, the input-output section will stay at the same position after the "Read" operation.
17.
Bagian Input Output bila dipakai setelah menulis data kursor akan pindah ke kolom 1 dari baris berikutnya adalah …
Correct Answer
D. D. WriteLn
Explanation
Bagian Input Output bila dipakai setelah menulis data kursor akan pindah ke kolom 1 dari baris berikutnya adalah WriteLn. WriteLn adalah perintah dalam bahasa pemrograman yang digunakan untuk menampilkan output ke layar. Setelah menulis data menggunakan perintah WriteLn, kursor akan pindah ke kolom 1 dari baris berikutnya, sehingga output berikutnya akan ditampilkan di baris baru.
18.
Perhatikan program dibawah
Program Menghitung_VolumeBalok;
Var
P,L,T,ISI,VOL : Integer;
Begin
P:=35;
L:=20;
T:=15;
VOL:=P*L*T;
Writeln(ISI:8,VOL:8);
End.
Bila program diatas dijalankan hasilnya adalah ...
Correct Answer
C. C. 0 , 10500
Explanation
The program calculates the volume of a rectangular prism using the formula VOL:=P*L*T, where P, L, and T are the given values. In this case, P=35, L=20, and T=15. Therefore, the volume is calculated as VOL:=35*20*15=10500. The program then prints the values of ISI and VOL using the Writeln statement. Since the value of ISI is not given in the program, it is assumed to be 0. Therefore, the output of the program is 0, 10500.
19.
Program Hitung_1;
Var
R,P:real;
Begin
Write(‘Masukkan Jari-jari (cm):’);Readlan(R);
P:=pi*SQR(R);
Writeln(‘Hasil Program Adalah :’,P:10:2);
End.
Program diatas adalah program untuk menghitung…..
Correct Answer
C. C. Luas Lingkaran
Explanation
The given program is used to calculate the area of a circle. It asks the user to input the radius of the circle, then calculates the area using the formula P = pi * (R^2), where P represents the area and R represents the radius. Finally, it displays the result as "Hasil Program Adalah: P" with 2 decimal places. Therefore, the correct answer is C. Luas Lingkaran, which means the area of a circle in English.
20.
Pada soal nomor 19, jika dimasukkan jari-jari : 9 maka hasilnya adalah …..
Correct Answer
D. D. 254.34
Explanation
The given question asks for the result when the radius is 9. To find the result, we need to use the formula for the area of a circle, which is A = πr^2. Plugging in the value of the radius (9) into the formula, we get A = π(9)^2 = π(81) = 254.34. Therefore, the correct answer is D. 254.34.
21.
Simbol dari assignment operator adalah :
Correct Answer
B. B. :=
Explanation
The symbol for the assignment operator is ":=". This symbol is commonly used in programming languages to assign a value to a variable. It is different from the equality operator "=" which is used to compare two values. The use of ":=" makes it clear that the intention is to assign a value rather than compare values.
22.
Manakah yang bukan merupakan reserved word dalam Free Pascal ?
Correct Answer
D. D. Boolean
Explanation
The reserved words in Free Pascal are Record, Program, In, and And. Boolean is not a reserved word in Free Pascal.
23.
Perhatikan potongan program dibawah :
write (‘Selamat Belajar’);
writeln (‘Pascal’);
write (‘Semoga Sukses’);
Dalam layar akan tampil :
Correct Answer
D. D. Selamat Belajar Pascal
Semoga Sukses
Explanation
The given program consists of three statements: write('Selamat Belajar'), writeln('Pascal'), and write('Semoga Sukses'). The write statement prints the text without moving to the next line, while the writeln statement prints the text and moves to the next line. Therefore, the first statement will print 'Selamat Belajar' without moving to the next line, the second statement will print 'Pascal' and move to the next line, and the third statement will print 'Semoga Sukses' without moving to the next line. Thus, the correct answer is D, which shows the correct output format of the program.
24.
Diantara ekspresi berikut yang tidak menghasilkan nilai 5 adalah :
Correct Answer
D. D. 5/1 + 1
Explanation
The expression 5/1 + 1 simplifies to 5 + 1, which equals 6. Therefore, this expression does not result in the value 5.
25.
Cara anda mengetikkan input untuk program berikut ini adalah ....
Var Umur, Tinggi, Berat : Real;
Begin
Write(‘Masukkan umur, tinggi, dan berat badan Anda: ‘);
Readln (Umur, Tinggi, Berat);
End.
Correct Answer
A. A. 16, 170, 61.5
Explanation
The correct answer is A. 16, 170, 61.5. This is because in the given program, the input for the variables Umur, Tinggi, and Berat is expected to be entered in the format of "16, 170, 61.5". The commas are used to separate the values of each variable. Therefore, option A is the correct input format for the program.
26.
Deklarasi konstanta berikut yang salah adalah ....
Correct Answer
A. A. const rata-rata=10;
Explanation
The declaration of a constant should follow certain rules. In this case, the constant "rata-rata" is not a valid identifier as it contains a hyphen, which is not allowed in variable or constant names. Therefore, the declaration "const rata-rata=10;" is incorrect.
27.
Dibawah ini yang tidak dapat melakukan operasi aritmetika adalah.....
Correct Answer
D. D. Boolean
Explanation
Boolean values are used to represent true or false, and they are not used in arithmetic operations. Arithmetic operations are performed on numeric data types such as integers, bytes, reals, and words. Therefore, the correct answer is D. Boolean.
28.
Var r ; real;
Begin
r:=147.0;
writeLn ( r:0:5 );
End.
Tampilan program di atas adalah ...
Correct Answer
E. E. 147.00000
Explanation
The program is using the writeLn function to display the value of the variable r. The format specifier ":0:5" is used to specify that the value should be displayed with 5 decimal places. Since the value of r is 147.0, it will be displayed as 147.00000. Therefore, the correct answer is E. 147.00000.
29.
Var i, j;byte;
begin
i:=100; j:=200;
writeLn ( i*j );
End.
Tampilan program di atas adalah ...
-
Correct Answer
B. B. 20000
Explanation
The program declares two variables, i and j, and assigns them the values 100 and 200 respectively. It then multiplies the values of i and j together and prints the result. The multiplication of 100 and 200 is equal to 20000, so the correct answer is B. 20000.
30.
Deklarasi konstanta yang tidak dapat diterima adalah ....
Correct Answer
C. C='4'
Explanation
The given code snippet declares several constants. However, the constant "c" is not acceptable because it is assigned a value that is not a valid numeric constant. In this case, the value assigned to "c" is a string constant '4', which is not a valid constant for a numeric declaration.