Bab 1.4.2 - Operator Hubungan dan Operator Logikal dlm Struktur

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
ANNISA ZAKIAH BINTI KAMARUDIN KPM-Guru
Used 10+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Antara berikut, yang manakah merupakan operator hubungan dalam bahasa pengaturcaraan?
&&, ||, !
==, !=, >, <, >=, <=
+, -, *, /
if, else, switch
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah fungsi utama operator hubungan dalam sesuatu program?
Melaksanakan operasi matematik
Menukar jenis data pembolehubah
Mengulang sesuatu pernyataan dalam gelung
Membandingkan dua nilai
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x = 7, y = 10;
bool result = (x < y) && (y > 5);
True
False
10
7
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah fungsi operator && dalam struktur kawalan pilihan?
Menukar nilai true kepada false dan sebaliknya
Mengembalikan true jika sekurang-kurangnya satu pernyataan benar
Mengembalikan true jika salah satu pernyataan adalah palsu
Mengembalikan true jika kedua-dua pernyataan adalah benar
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jika x = 5 dan y = 3, apakah nilai ekspresi (x != 5) || (y < 4)?
3
5
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah nilai ekspresi berikut jika x = 10 dan y = 5?
(x > y) && (y != 5)
False
True
10
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dalam kawalan pilihan, apakah tujuan utama operator hubungan ?
Melakukan operasi aritmetik
Mengubah jenis data
Mengulang sesuatu kod
Membandingkan dua nilai
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
ASK TING 1 BAB 3 : ALGORITMA

Quiz
•
1st - 12th Grade
15 questions
Soalan SK T4 Sem 2 2024

Quiz
•
11th Grade
11 questions
Caligrafía | CM7

Quiz
•
1st - 10th Grade
7 questions
While Loops

Quiz
•
10th - 12th Grade
10 questions
Quizizz Paper Mode Ting 2

Quiz
•
9th Grade
10 questions
Quiz Bahasa C++ 1

Quiz
•
9th - 12th Grade
13 questions
TIK KELAS IX

Quiz
•
12th Grade
9 questions
Test-C++Tablouri unidiensionale-prof. Tudor V

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade