
Operator Logika
Authored by frsk ysf
Information Technology (IT)
6th - 8th Grade
Used 2+ 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
Apa hasil dari kode ini? sensor_left = True sensor_right = False print(sensor_left and not sensor_right)
True
False
Error
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kode mana yang benar untuk mengecek tombol start dan tombol stop tidak ditekan secara bersamaan? start_pressed = True stop_pressed = False print(____)
start_pressed and stop_pressed
start_pressed or stop_pressed
start_pressed and not stop_pressed
not start_pressed and not stop_pressed
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode ini? distance = 25 print(distance < 20 or distance > 30)
True
False
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output apa yang muncul? robot_ready = True emergency_stop = False print(not robot_ready or emergency_stop)
True
False
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah kode ini error? Jika iya, kenapa? print(sensorA and sensorB or)
Ya, operator `or` tidak punya operand di kanan
Tidak error
`and` harus diganti `or`
Tidak ada output
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lengkapi kode berikut supaya outputnya True saat sensorA dan sensorB aktif, dan tombol start tidak ditekan. sensorA = True sensorB = True start = False print(sensorA ____ sensorB ____ not start)
and, and
or, or
and, or
or, and
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output kode ini? print((not True) == False)
True
False
Error
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?