SAINS KOMPUTER TING 4 - 1.4 STRUKTUR KAWALAN

SAINS KOMPUTER TING 4 - 1.4 STRUKTUR KAWALAN

12th Grade - University

67 Qs

quiz-placeholder

Similar activities

WS301 - Quiz

WS301 - Quiz

University

70 Qs

Algorithm, Flowchart & Pseudocode

Algorithm, Flowchart & Pseudocode

University - Professional Development

66 Qs

Charizard CS test

Charizard CS test

12th Grade

66 Qs

PC Troubleshooting

PC Troubleshooting

8th - 12th Grade

69 Qs

WIN-ADMINISTRASI SISTEM JARINGAN 67 SOAL

WIN-ADMINISTRASI SISTEM JARINGAN 67 SOAL

12th Grade

67 Qs

Salesforce Test 1 For Ranking

Salesforce Test 1 For Ranking

University

68 Qs

iGCSE Computer Science: Data

iGCSE Computer Science: Data

9th - 12th Grade

69 Qs

OCR A-Level Computer Science 1.5.1 Computer Related Legislation

OCR A-Level Computer Science 1.5.1 Computer Related Legislation

11th - 12th Grade

65 Qs

SAINS KOMPUTER TING 4 - 1.4 STRUKTUR KAWALAN

SAINS KOMPUTER TING 4 - 1.4 STRUKTUR KAWALAN

Assessment

Quiz

Computers

12th Grade - University

Practice Problem

Hard

Created by

Nur D'manz

Used 85+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

67 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Yang manakah satu BUKAN contoh penggunaan struktur kawalan pilihan?

JIKA_TIDAK
if and only if
switch-case
?

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

term (syarat) {
blok penyataan;
}
Apakah yang boleh menggantikan term sekiranya merupakan struktur kawalan pilihan?

if
else if
else
Semua

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Apakah yang dimaksudkan dengan struktur kawalan pilihan?
Sistem yang membenarkan komputer membuat ......... berdasarkan .........

output, input
keputusan, keadaan
tindakan, syarat
pilihan, syarat

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

double x = 8;
if (x>0) {System.out.println("positif");
if (x%2) {System.out.print(x%2);
else if (x==8) {System.out.println("8");
Apakah output?

positif
0
positif
4
8
positif
08
positif
8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sekiranya suatu arahan dilaksanakan hanya sekiranya syaratnya dipatuhi dan sayrat sebelumnya tidak dipenuhi, kita patut menggunakan...

if
else if
if else
else

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int x = 5.0;
if (x) { x = x+1};
else if (x < 0) x =- 4;
else x++
Berapakah kesalahan yang terdapat dalam kod ini?

5
6
7
8

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apakah urutan menghasilkan program yang membandingkan input pengguna dengan sesuatu nombor dan memaparkan sekiranya sama?
Contoh program ialah password protector

Scanner -> if-else -> input -> output
Scanner -> input -> if-else -> output
Scanner -> output -> if-else -> input
if-else -> Scanner -> input -> output

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?