
1.4.1 STRUKTUR KAWALAN
Authored by Rupasree Suntharesan
Information Technology (IT)
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
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Apakah tujuan utama struktur kawalan pilihan dalam pengaturcaraan?
A) Mengulang sesuatu kod beberapa kali
B) Menentukan aliran kod berdasarkan syarat tertentu
C) Menyusun kod dalam bentuk senarai
D) Menukar jenis data pemboleh ubah
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. Manakah antara berikut yang merupakan contoh syarat boolean yang betul?
A) if (umur = 16)
B) if umur > 16 then
C) if (umur >= 16)
D) switch umur { 16: "Dewasa"; }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Apakah kelebihan utama menggunakan switch-case berbanding if-else-if?
A) Ia lebih mudah dibaca dan difahami
B) Ia boleh digunakan untuk semua jenis data
C) Ia tidak memerlukan pernyataan break
D) Ia lebih sesuai untuk syarat yang kompleks
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Dalam switch-case, apakah fungsi utama pernyataan break?
A) Menghentikan program sepenuhnya
B) Memastikan hanya satu kes dilaksanakan dan mengelakkan kes lain berjalan secara automatik
C) Menamatkan keseluruhan kod tanpa menjalankan kes lain
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. Apakah output bagi kod berikut?
int markah = 85;
switch (markah) {
case 90: System.out.println("Cemerlang"); break;
case 85: System.out.println("Baik"); break;
case 75: System.out.println("Memuaskan"); break;
default: System.out.println("Teruskan usaha");
}
A) Cemerlang
B) Baik
C) Memuaskan
D) Teruskan usaha
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
Pre-Test Jaringan Komputer
Quiz
•
11th Grade
10 questions
POST TEST -TOPOLOGI JARINGAN
Quiz
•
11th Grade
10 questions
2TDS - Programação Frontend
Quiz
•
11th Grade
10 questions
Kuiz Mini Robot Fighting - MakerHub MY
Quiz
•
4th Grade - University
8 questions
Jaringan Komputer dan Topologi
Quiz
•
11th Grade - University
5 questions
PRE TEST
Quiz
•
11th Grade
10 questions
Keamanan Jaringan
Quiz
•
11th Grade
10 questions
Struktur Kontrol pada Java
Quiz
•
11th 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
15 questions
ACT Reading Practice
Quiz
•
11th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade