
Percabangan
Authored by DPPLG SMK8
Computers
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
MS PowerPoint
Quiz
•
11th Grade
10 questions
Writer - II
Quiz
•
11th Grade
12 questions
ASAS SAINS KOMPUTER : TINGKATAN 3
Quiz
•
4th Grade - University
10 questions
Typography
Quiz
•
11th Grade
10 questions
Python Testing
Quiz
•
9th - 12th Grade
10 questions
YouCode Scratch Quiz
Quiz
•
KG - 12th Grade
10 questions
HTML (3CS)
Quiz
•
10th - 11th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th 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