Search Header Logo

Quiz Pemrograman Python

Authored by Bagus Haris

Science

University

Used 1+ times

Quiz Pemrograman Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa hasil dari perintah berikut? print(3 + 2 * 2)

10

7

9

12

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara mendeklarasikan variabel di Python?

int x = 5

x := 5

x = 5

var x = 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa tipe data dari variabel berikut? x = 5.0

int

float

str

bool

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa yang akan dihasilkan oleh kode berikut?

x = True

y = False

print(x and y)

True

False

Error

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari pernyataan ini?

print("Hello" + " " + "World")

HelloWorld

Hello World

Error

Hello

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pernyataan manakah yang benar untuk perulangan for?

for i from 0 to 10:

for i = 0 to 10:

for i in range(10):

for i to 10:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa hasil dari pernyataan berikut?

print(10 % 3)

3

1

10

0

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?

Discover more resources for Science