
Pemrograman Pascal: Perulangan
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Rifmelda Rizal
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa itu perulangan dalam pemrograman?
Perulangan adalah metode untuk menyimpan data secara permanen.
Perulangan adalah proses mengeksekusi blok kode secara berulang.
Perulangan adalah proses mengubah data menjadi format lain.
Perulangan adalah cara untuk menghentikan program.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sebutkan jenis-jenis perulangan yang ada di Pascal!
SWITCH...CASE
FOR, WHILE, REPEAT...UNTIL
DO...WHILE
FOREACH
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jelaskan fungsi dari perulangan 'for' di Pascal!
Perulangan 'for' di Pascal berfungsi untuk menghentikan eksekusi program.
Perulangan 'for' di Pascal berfungsi untuk mengulangi blok kode dengan jumlah iterasi yang ditentukan.
Perulangan 'for' di Pascal hanya dapat digunakan untuk tipe data string.
Perulangan 'for' di Pascal digunakan untuk mengulangi blok kode tanpa batas.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara menggunakan perulangan 'while' di Pascal?
for kondisi do begin ... end;
repeat until kondisi do begin ... end;
while kondisi do begin ... end;
do while kondisi begin ... end;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa perbedaan antara 'for' dan 'while' dalam Pascal?
'for' digunakan untuk kondisi yang tidak tetap
Perbedaan utama adalah 'for' untuk iterasi dengan jumlah tetap, sedangkan 'while' untuk iterasi berdasarkan kondisi.
'while' hanya digunakan untuk perulangan satu kali
'for' dan 'while' memiliki fungsi yang sama dalam Pascal
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Berikan contoh kode perulangan 'repeat...until' di Pascal!
program RepeatUntilExample; begin var i: integer; i := 1; repeat writeln(i); i := i + 1; until i > 5; end.
program WhileExample; begin var m: integer; m := 1; while m <= 5 do begin writeln(m); m := m + 1; end; end.
program ForLoopExample; begin for k := 1 to 5 do writeln(k); end.
program LoopExample; begin var j: integer; j := 1; while j < 5 do writeln(j); j := j + 1; end.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang terjadi jika kondisi perulangan tidak pernah terpenuhi?
Kondisi perulangan akan selalu terpenuhi.
Perulangan akan dieksekusi sekali.
Perulangan akan menghasilkan kesalahan runtime.
Perulangan tidak akan pernah dieksekusi.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Evolution of Computer Programming
Quiz
•
10th Grade
10 questions
evaluasi Sistem Komputer
Quiz
•
10th Grade
14 questions
1.1 Data and information
Quiz
•
10th - 12th Grade
15 questions
HTML Quiz
Quiz
•
9th - 12th Grade
15 questions
Algorithms
Quiz
•
7th - 10th Grade
11 questions
What is a computer
Quiz
•
KG - University
10 questions
Fundamentals of Algorithms
Quiz
•
10th Grade
10 questions
Символьные и строковые величины
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
