Ujian Online Pemrograman Dasar Pascal

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 Susiantoro2012
S
Susiantoro2012
Community Contributor
Quizzes Created: 4 | Total Attempts: 30,599
| Attempts: 1,078 | Pertanyaan: 30
Please wait...

Question 1 / 30
0 %
0/100
Score 0/100
1. Instruksi yang diberikan kepada Komputer agar komputer dapat melaksanakan tugas-tugas tertentu adalah …              

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.

Submit
Please wait...
About This Quiz
Ujian Online Pemrograman Dasar Pascal - Quiz

Personalize your quiz and earn a certificate with your name on it!
2. Dibawah ini yang bukan merupakan bahasa pemrograman adalah ...                                                                     

Explanation

The given options are all programming languages except for E. Ms. Word, which is a word processing software.

Submit
3. Var i, j;byte;
        begin 
            i:=100;  j:=200;
            writeLn ( i*j );
        End.
        Tampilan program di atas adalah ...                  
  1.  

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.

Submit
4. Untuk mendeklarasikan variabel dalam bahasa Pascal digunakan kata ...                                                          

Explanation

The correct answer is "E. Var". In Pascal, the keyword "var" is used to declare variables.

Submit
5. Diantara ekspresi berikut yang tidak menghasilkan nilai 5 adalah :                                                             

Explanation

The expression 5/1 + 1 simplifies to 5 + 1, which equals 6. Therefore, this expression does not result in the value 5.

Submit
6. Yang termasuk tipe data Numeric adalah ..                                                     

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.

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

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.

Submit
8. Nilai X dalam rumus X:= 45-2*10;                                                

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.

Submit
9. Bahasa  Pascal termasuk bahasa pemrograman tingkat …                                                            

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.

Submit
10. Prosedur atau formula untuk menyelesaikan masalah yang berhubungan dengan pemrograman Komputer secara umum dikenal dengan istilah ...       

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.

Submit
11. Perintah yang digunakan untuk mengawali blok program Pascal adalah …                                                                            

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.

Submit
12. Cara penulisan judul program pada pascal yang benar adalah ...                                       

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.

Submit
13. Tipe bilangan bulat dalam bahasa pemrograman Pascal dikenal sebagai ….                                              

Explanation

Tipe bilangan bulat dalam bahasa pemrograman Pascal dikenal sebagai Integer.

Submit
14. Perintah yang digunakan untuk mengakhiri blok program  Pascal adalah …                                                                             

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.

Submit
15. Simbol dari assignment operator adalah :                                                   

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.

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

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.

Submit
17. Cara membuka menu File pada program Pascal dapat dilakukan dengan menekan tombol keyboard ...                                                          

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.

Submit
18. Pada soal nomor 19, jika dimasukkan jari-jari : 9 maka hasilnya adalah …..                                                 

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.

Submit
19. Perhatikan potongan program dibawah :          write ('Selamat Belajar');   writeln ('Pascal');         write ('Semoga Sukses');         Dalam layar akan tampil :

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.

Submit
20. Yang bukan termasuk Identifier dibawah ini adalah ..                                             

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.

Submit
21. Perintah untuk menjalankan program dalam  Pascal adalah …                                                    

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.

Submit
22. Manakah yang bukan merupakan reserved word dalam Free Pascal ?                                                                 

Explanation

The reserved words in Free Pascal are Record, Program, In, and And. Boolean is not a reserved word in Free Pascal.

Submit
23. Bagian Input Output bila dipakai setelah menulis data kursor akan pindah ke kolom 1 dari baris berikutnya adalah …                                                               

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.

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

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.

Submit
25. Var r ; real;         Begin              r:=147.0;              writeLn ( r:0:5 );         End.         Tampilan program di atas adalah ...                                    

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.

Submit
26. Dalam  Pascal perintah untuk melihat hasil program adalah                                                       

Explanation

In Pascal, the correct command to view the program's output is Alt + F5.

Submit
27. Deklarasi konstanta berikut yang salah adalah ....
                       
                                  

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.

Submit
28. Dibawah ini yang tidak dapat melakukan operasi aritmetika adalah.....                                                                

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.

Submit
29. Bagian Input Output bila dipakai setelah membaca data kursor akan tetap berada di samping data tersebut adalah …                                                              

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.

Submit
30. Deklarasi konstanta yang tidak dapat diterima adalah ....

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.

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
  • Jun 10, 2012
    Quiz Created by
    Susiantoro2012
Cancel
  • All
    All (30)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Instruksi yang diberikan kepada Komputer agar komputer dapat...
Dibawah ini yang bukan merupakan bahasa pemrograman adalah ......
Var i, j;byte;...
Untuk mendeklarasikan variabel dalam bahasa Pascal digunakan kata ......
Diantara ekspresi berikut yang tidak menghasilkan nilai 5 adalah :...
Yang termasuk tipe data Numeric adalah .....
Program Hitung_1;...
Nilai X dalam rumus X:= 45-2*10;...
Bahasa  Pascal termasuk bahasa pemrograman tingkat …...
Prosedur atau formula untuk menyelesaikan masalah yang berhubungan...
Perintah yang digunakan untuk mengawali blok program Pascal adalah...
Cara penulisan judul program pada pascal yang benar adalah ......
Tipe bilangan bulat dalam bahasa pemrograman Pascal dikenal sebagai...
Perintah yang digunakan untuk mengakhiri blok program  Pascal...
Simbol dari assignment operator adalah :...
Cara anda mengetikkan input untuk program berikut ini adalah .......
Cara membuka menu File pada program Pascal dapat dilakukan dengan...
Pada soal nomor 19, jika dimasukkan jari-jari : 9 maka hasilnya adalah...
Perhatikan potongan program dibawah...
Yang bukan termasuk Identifier dibawah ini adalah .....
Perintah untuk menjalankan program dalam  Pascal adalah …...
Manakah yang bukan merupakan reserved word dalam Free Pascal ?...
Bagian Input Output bila dipakai setelah menulis data kursor akan...
Perhatikan program dibawah...
Var r ; real;...
Dalam  Pascal perintah untuk melihat hasil program adalah...
Deklarasi konstanta berikut yang salah adalah .......
Dibawah ini yang tidak dapat melakukan operasi aritmetika adalah........
Bagian Input Output bila dipakai setelah membaca data kursor akan...
Deklarasi konstanta yang tidak dapat diterima adalah ....
Alert!

Advertisement