Search Header Logo

TUGASAN TEORI C++ - IF | IF-ELSE | NESTED IF-ELSE

Authored by Huda Bukhari

Computers

University

Used 6+ times

TUGASAN TEORI C++ - IF | IF-ELSE | NESTED IF-ELSE
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Apakah output bagi kod berikut jika suhu = 38.5?

Tiada Output

Demam detected!

37.5

38.5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Apakah output apabila markah = 85?

Gagal

Teruskan usaha

85

Tahniah!

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kod berikut akan memaparkan output apa jika x = 5?

Positif

Negatif

Neutral

Kosong

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apakah maksud struktur if-else dalam pengaturcaraan?

Menyimpan data

Mengulang arahan berulang kali

Mengira hasil operasi

Pilihan antara dua keadaan

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Apakah output jika boiler_pressure = 50?

Alarm : Boiler Pressure : TOO HIGH

Boiler Pressure : TOO LOW

Boiler Pressure: within normal limits

Tiada output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Dalam kod berikut, berapakah output jika nilai = -5?

Positif

Bukan Positif

-5

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Jika markah = 40, apakah output yang dipaparkan ?

A

B

C

F

Access all questions and much more by creating a free account

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?