Search Header Logo

Print() dan variable

Authored by frsk ysf

Information Technology (IT)

6th - 8th Grade

Used 1+ times

Print() dan variable
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Apa output dari kode berikut ini?

speed = 90

print("Robot speed is", speed)

Robot speed is speed
Robot speed is: 90
Robot speed is 90
90 is Robot speed

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Manakah yang benar untuk membuat variabel nama robot?

robot name = "Atlas"
robot-name = "Atlas"
robot_name = "Atlas"
robot_name == "Atlas"

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

voltage = 13.2

print("Battery voltage:", voltage, "V")

Apa output-nya?

Battery voltage: 13.2 V
Battery voltage: voltage V
13.2V
Battery: 13.2

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Apa hasil dari kode berikut ini?

x = 4

y = 6

print("Sum is", x + y)

Sum is x + y
Sum is 10
Sum is 46
10

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

name = "Bolt"

speed = 100

print("Name:", name, "Speed:", speed) `

Output-nya adalah...

Name: Bolt Speed: 100
Name: name Speed: speed
Bolt and 100
Name: Bolt, Speed: 100

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Apa hasil dari kode berikut?

arm_position = 45

print("Arm moved to", arm_position, "degrees")

Arm moved to arm_position degrees
Arm moved to: 45°
Arm moved to 45 degrees
Arm moved to degrees 45

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Apa yang salah dari kode ini?

print("Current mode:", mode)

Variabel mode belum dibuat
Tidak boleh pakai print()
Kurang tanda tambah
Penulisan string salah

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?