Operator Perbandingan dan Logika

Operator Perbandingan dan Logika

6th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

Pengolah Kata dan Data

Pengolah Kata dan Data

7th Grade

17 Qs

Sumatif Ulangan Harian Jaringan Komputer dan Internet

Sumatif Ulangan Harian Jaringan Komputer dan Internet

7th Grade

20 Qs

UH Bab 5 Kelas 6 Smt 2

UH Bab 5 Kelas 6 Smt 2

6th Grade

20 Qs

Statements in Python

Statements in Python

8th Grade

20 Qs

sumatif 1 kelas 8 semester 2

sumatif 1 kelas 8 semester 2

7th Grade

20 Qs

Microbit 2

Microbit 2

8th Grade

15 Qs

8 Jaringan Komputer dan Internet

8 Jaringan Komputer dan Internet

8th Grade

20 Qs

MS Word Processing Software Quiz

MS Word Processing Software Quiz

7th Grade

20 Qs

Operator Perbandingan dan Logika

Operator Perbandingan dan Logika

Assessment

Quiz

Information Technology (IT)

6th - 8th Grade

Practice Problem

Hard

Created by

frsk ysf

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut?

baterai = 40

sensor_ok = True

print(baterai > 50 and sensor_ok)

True
False
Error
None

Answer explanation

Ekspresi 40 > 50 bernilai False, sehingga keseluruhan False meskipun sensor_ok True.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut?

roda_kiri = 360

roda_kanan = 360

print(roda_kiri == roda_kanan)

True
False
Error
None

Answer explanation

360 == 360 bernilai True.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut?

suhu_motor = 45

print(suhu_motor < 70 and suhu_motor > 50)

True
False
Error
None

Answer explanation

45 < 70 True, tapi 45 > 50 False, sehingga and menghasilkan False.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut?

sensor_bola = False

print(not sensor_bola)

True
False
Error
None

Answer explanation

not False bernilai True.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut?

baterai = 45

mode_darurat = False

print(baterai > 50 or mode_darurat)

True
False
Error
None

Answer explanation

45 > 50 False dan mode_darurat False, sehingga or menghasilkan False.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut?

roda_kiri = 100

roda_kanan = 97

print(roda_kiri - roda_kanann <= 2)

True
False
Error
None

Answer explanation

Terjadi NameError karena variabel roda_kanann tidak didefinisikan.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut?

kamera_ok = True

lampu_ok = True

print(kamera_ok and not lampu_ok)

True
False
Error
None

Answer explanation

not lampu_ok adalah not True = False, sehingga True and False = False.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?