Search Header Logo

Ujian Pengukuhan Bab 3.1 Persekitaran Kod Arahan Python

Authored by Umi Sarina

Computers

5th Grade

Used 1+ times

Ujian Pengukuhan Bab 3.1 Persekitaran Kod Arahan Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Apakah fungsi input yang digunakan dalam baris kod aturcara Python di bawah?

nama = input("Masukkan nama anda: ")

input()

print()

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Diberi pembolehubah berikut:
x = 15
y = 8
Tulis output bagi arahan berikut:

a) print(x > y) __________

TRUE

FALSE

3.

OPEN ENDED QUESTION

3 mins • 10 pts

Diberi pembolehubah berikut:
x = 15
y = 8
Tulis output bagi kod arahan Python berikut:

print(x <= y)

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Diberi pembolehubah berikut:
x = 15
y = 8
Tulis output bagi kod arahan Python berikut:

print(x % y)

70

1.875

7

5.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

Diberi pembolehubah berikut:
x = 15
y = 8
Tulis output bagi kod arahan Python berikut:

print(x // y)

1

1.875

7

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Situasi: Sebuah mesin layan diri menjual minuman pada harga RM2. Jika pelanggan memasukkan wang RM2 atau RM5, mesej 'Terima kasih' dipaparkan. Jika tidak, mesej 'Wang anda tidak mencukupi' dipaparkan.
Lengkapkan kod berikut:
wang = int(input('Masukkan wang: '))
if wang == 2 or wang == 5:
print("_______________________________")

Terima kasih

Wang anda tidak mencukupi

Null

output

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Apakah hasil bagi ungkapan berikut jika a = 5 dan b = 10? print(a >= b)

True

False

5

10

Access all questions and much more by creating a free account

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

Already have an account?