
Percabangan

Quiz
•
Computers
•
11th Grade
•
Easy

DPPLG SMK8
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kapan blok kode dalam “if” akan dijalankan?
Selalu
Hanya jika kondisi benar
Bukan kode “if” yang dijalankan
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kapan kita akan menggunakan “if-else if”?
Ketika hanya ada satu kondisi
Ketika ada beberapa kondisi yang saling terkait
Ketika dalam perulangan
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jika program hanya mempunyai dua kondisi yang berbeda
if-else
if-else if
switch-case
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang terjadi jika tidak ada kasus dalam switch-case yang cocok dengan nilai ekspresi?
Perulangan tak terbatas
Keluar dari perulangan
Eksekusi kode default (jika ada)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah dari pernyataan berikut yang benar tentang `default` dalam `switch-case`?
Wajib ada
Hanya boleh ada satu `default`
Opsional (tidak wajib)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x = 10;
int y = 5;
if (x > y)
{ Console.WriteLine("x lebih besar daripada y."); }
...
Apakah yang akan dicetak oleh program?
"x lebih besar daripada y."
x > y
Tidak dicetak karena kode salah
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int nilai = 3;
switch (nilai)
{ case 1:
Console.WriteLine("Satu");
break;
case 2:
Console.WriteLine("Dua");
break; }
```
Apa yang kurang dari kode ini?
break
default
else
8.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
}
else if (angka < 0)
{ hasil = "Negatif"; }
else
{ hasil = "Nol"; }
...
Apa yang kurang dari kode tersebut?
default
while
if
Similar Resources on Wayground
10 questions
Quiz Javascript Basic Pertemuan 3

Quiz
•
9th - 12th Grade
10 questions
Programming - Iteration, Basic Programming Constructs & Loop

Quiz
•
2nd - 12th Grade
9 questions
HTML Basics

Quiz
•
9th Grade - Professio...
6 questions
Intent & View Binding

Quiz
•
9th - 12th Grade
10 questions
File Handling in Python

Quiz
•
11th - 12th Grade
10 questions
Условный оператор

Quiz
•
9th - 12th Grade
10 questions
Java Script

Quiz
•
10th - 12th Grade
10 questions
Konfigurasi VLAN

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade