Ujian Online Pemrograman Dasar Pascal

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 Susiantoro2012
S
Susiantoro2012
Community Contributor
Quizzes Created: 4 | Total Attempts: 29,863
Pertanyaan: 30 | Attempts: 1,066

SettingsSettingsSettings
Ujian Online Pemrograman Dasar Pascal - Quiz


Questions and Answers
  • 1. 

    Instruksi yang diberikan kepada Komputer agar komputer dapat melaksanakan tugas-tugas tertentu adalah …              

    • A.

      A. Data

    • B.

      B. Informasi

    • C.

      C. Program

    • D.

      D. Netter

    • E.

      E. Programer

    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.

    Rate this question:

  • 2. 

    Dibawah ini yang bukan merupakan bahasa pemrograman adalah ...                                                                     

    • A.

      A. Basic

    • B.

      B. C++

    • C.

      C. Fortran

    • D.

      D. Pascal

    • E.

      E. Ms. Word

    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.

    Rate this question:

  • 3. 

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

    • A.

      A. Alt + F

    • B.

      B. Alt + M

    • C.

      C. Ctrl + F

    • D.

      D. Ctrl + F9

    • E.

      E. Alt + F9

    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.

    Rate this question:

  • 4. 

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

    • A.

      A. Program Volume Balok;

    • B.

      B. Program Volume_Balok;

    • C.

      C. Program_Volume_Balok;

    • D.

      D. ProgramVolumeBalok;

    • E.

      E. Prgram 1VolumeBalok;

    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.

    Rate this question:

  • 5. 

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

    • A.

      A. 430

    • B.

      B. 340

    • C.

      C. 52

    • D.

      D. 25

    • E.

      E. 23

    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.

    Rate this question:

  • 6. 

    Yang termasuk tipe data Numeric adalah ..                                                     

    • A.

      A. Integer

    • B.

      B. Real

    • C.

      C. String

    • D.

      D. Jawaban A, B benar

    • E.

      E. Semua jawaban salah

    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.

    Rate this question:

  • 7. 

    Dalam  Pascal perintah untuk melihat hasil program adalah                                                       

    • A.

      A. Ctrl + F5

    • B.

      B. Ctrl + F9

    • C.

      C. Alt + F9

    • D.

      D. Alt + F5

    • E.

      E. Alt + D

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

    Rate this question:

  • 8. 

    Perintah untuk menjalankan program dalam  Pascal adalah …                                                    

    • A.

      A. Ctrl + F5

    • B.

      B. Ctrl + F9

    • C.

      C. Alt + F9

    • D.

      D. Alt + F5

    • E.

      E. Alt + D

    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.

    Rate this question:

  • 9. 

    Bahasa  Pascal termasuk bahasa pemrograman tingkat …                                                            

    • A.

      A. Rendah

    • B.

      B. Menengah

    • C.

      C. Tinggi

    • D.

      D. Medium

    • E.

      E.Expert

    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.

    Rate this question:

  • 10. 

    Untuk mendeklarasikan variabel dalam bahasa Pascal digunakan kata ...                                                          

    • A.

      A. Const

    • B.

      B. Use

    • C.

      C. Label

    • D.

      D. Identifier

    • E.

      E. Var

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

    Rate this question:

  • 11. 

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

    • A.

      A. Psedocode

    • B.

      B. Algoritma

    • C.

      C. Kiat

    • D.

      D. Fundamental Step

    • E.

      E. Taktik

    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.

    Rate this question:

  • 12. 

    Perintah yang digunakan untuk mengawali blok program Pascal adalah …                                                                            

    • A.

      A. START

    • B.

      B. MULAI

    • C.

      C. BEGIN

    • D.

      D. END.

    • E.

      E. STOP

    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.

    Rate this question:

  • 13. 

    Perintah yang digunakan untuk mengakhiri blok program  Pascal adalah …                                                                             

    • A.

      A. START

    • B.

      B. AKHIR

    • C.

      C. BEGIN

    • D.

      D. END;

    • E.

      E. END.

    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.

    Rate this question:

  • 14. 

    Yang bukan termasuk Identifier dibawah ini adalah ..                                             

    • A.

      A. Label

    • B.

      B. Konstanta

    • C.

      C. Type

    • D.

      D. Deklarasi

    • E.

      E. Var

    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.

    Rate this question:

  • 15. 

    Tipe bilangan bulat dalam bahasa pemrograman Pascal dikenal sebagai ….                                              

    • A.

      A. Real

    • B.

      B. Boolean

    • C.

      C. Integer

    • D.

      D. String

    • E.

      E. Char

    Correct Answer
    C. C. Integer
    Explanation
    Tipe bilangan bulat dalam bahasa pemrograman Pascal dikenal sebagai Integer.

    Rate this question:

  • 16. 

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

    • A.

      A. Write

    • B.

      B. Read

    • C.

      C. ReadLn

    • D.

      D. WriteLn

    • E.

      E. Variabel

    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.

    Rate this question:

  • 17. 

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

    • A.

      A. Write

    • B.

      B. Read

    • C.

      C. ReadLn

    • D.

      D. WriteLn

    • E.

      E. Varlabel

    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.

    Rate this question:

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

    • A.

      A. 10500

    • B.

      B. 0

    • C.

      C. 0 , 10500

    • D.

      D. 10500 , 0

    • E.

      E. 15000 , 0

    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.

    Rate this question:

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

    • A.

      A. Luas Tabung

    • B.

      B. Volume Tabung

    • C.

      C. Luas Lingkaran

    • D.

      D. Keliling Lingkaran

    • E.

      E. Keliling Persegi Panjang

    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.

    Rate this question:

  • 20. 

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

    • A.

      A. 9.42

    • B.

      B. 28.27

    • C.

      C. 78.54

    • D.

      D. 254.34

    • E.

      E . 425.43

    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.

    Rate this question:

  • 21. 

    Simbol dari assignment operator adalah :                                                   

    • A.

      A. ;

    • B.

      B. :=

    • C.

      C. :

    • D.

      D. =

    • E.

      E. { }

    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.

    Rate this question:

  • 22. 

    Manakah yang bukan merupakan reserved word dalam Free Pascal ?                                                                 

    • A.

      A. Record

    • B.

      B. Program

    • C.

      C. In C. In

    • D.

      D. Boolean

    • E.

      E. And

    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.

    Rate this question:

  • 23. 

    Perhatikan potongan program dibawah :          write (‘Selamat Belajar’);   writeln (‘Pascal’);         write (‘Semoga Sukses’);         Dalam layar akan tampil :

    • A.

      A.  Selamat Belajar      Pascal Semoga Sukses

    • B.

      B. Selamat Belajar      Pascal      Semoga Sukses 

    • C.

      C. Selamat Belajar Pascal Semoga Sukses

    • D.

      D.   Selamat Belajar Pascal        Semoga Sukses

    • E.

      E.  Selamat       Belajar Pascal Semoga Sukses

    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.

    Rate this question:

  • 24. 

    Diantara ekspresi berikut yang tidak menghasilkan nilai 5 adalah :                                                             

    • A.

      A. 2 + 3/1

    • B.

      B. 3 mod 2 +4

    • C.

      C. 20*3 / 12

    • D.

      D. 5/1 + 1

    • E.

      E. 15/5 + 2

    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.

    Rate this question:

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

    • A.

      A. 16, 170, 61.5

    • B.

      B. 16; 170; 61.5

    • C.

      C. 16 170 61.5

    • D.

      D. 16, 170; 61.5

    • E.

      D. 16; 170; 16,5

    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.

    Rate this question:

  • 26. 

    Deklarasi konstanta berikut yang salah adalah ....                                                           

    • A.

      A. const rata-rata=10;

    • B.

      B. const pi=22/7;

    • C.

      C. const duaxtiga=8;

    • D.

      D. const suhu=20000;

    • E.

      E. const tinggibadan=150;

    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.

    Rate this question:

  • 27. 

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

    • A.

      A. Integer

    • B.

      B. Byte

    • C.

      C. Real

    • D.

      D. Boolean

    • E.

      E. Word

    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.

    Rate this question:

  • 28. 

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

    • A.

      A. 00147

    • B.

      B. 0147.0

    • C.

      C. 147.000

    • D.

      D. 147.0000

    • E.

      E. 147.00000

    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.

    Rate this question:

  • 29. 

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

    • A.

      A. 100

    • B.

      B. 20000

    • C.

      C. 300

    • D.

      E. 30000

    • E.

      D. 200

    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.

    Rate this question:

  • 30. 

    Deklarasi konstanta yang tidak dapat diterima adalah ....

    • A.

      X1=2.7182818

    • B.

      A=2

    • C.

      C='4'

    • D.

      S='konstanta string'

    • E.

      Ls=sizeof(longint)

    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.

    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
  • Jun 10, 2012
    Quiz Created by
    Susiantoro2012
Back to Top Back to top
Advertisement