Bab 1.4.2 - Operator Hubungan dan Operator Logikal dlm Struktur
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
ANNISA ZAKIAH BINTI KAMARUDIN KPM-Guru
Used 10+ times
FREE Resource
Enhance your content in a minute
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
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
7.2 Knowledge check
Quiz
•
9th Grade
10 questions
Bài 25 tin 10
Quiz
•
9th Grade - University
13 questions
Lesson 1: Variables (Activity)
Quiz
•
8th - 10th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
10 questions
Bentuk algotitma
Quiz
•
10th Grade
15 questions
Grade 12-Python selection&iteration
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
