
Pemrograman Pascal: Perulangan

Quiz
•
Computers
•
10th Grade
•
Hard
Rifmelda Rizal
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Struktur Perulangan C++

Quiz
•
10th Grade
10 questions
ASESMEN AWAL PEMBELAJARAN DPK

Quiz
•
9th - 12th Grade
5 questions
Pree Test struktur kondisional c#

Quiz
•
10th Grade
10 questions
Berikir Komputasional Fase E

Quiz
•
9th - 12th Grade
10 questions
Javascript Variables

Quiz
•
10th Grade
14 questions
PRA TEST KE 2 INFORMATIKA

Quiz
•
10th Grade
10 questions
Evaluasi Pembelajaran Materi Dasar OOP C++

Quiz
•
10th Grade
15 questions
Dasar Algoritma dan Pemrograman

Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade