
TUGASAN TEORI C++ - IF | IF-ELSE | NESTED IF-ELSE
Authored by Huda Bukhari
Computers
University
Used 6+ times

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
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
Apakah output apabila markah = 85?
Gagal
Teruskan usaha
85
Tahniah!
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
Dalam kod berikut, berapakah output jika nilai = -5?
Positif
Bukan Positif
-5
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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

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?