Search Header Logo

Kuis Uji Pemahaman Python Fungsi Input, Output dan Operator

Authored by Hatta Rukmana

Information Technology (IT)

11th Grade

Used 2+ times

Kuis Uji Pemahaman Python Fungsi Input, Output dan Operator
AI

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

Fungsi apa yang digunakan untuk menerima masukan dari pengguna di Python?

print()

input()

read()

scanf()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa tipe data default dari nilai yang diperoleh menggunakan input()?

int

float

str

bool

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara mengonversi input pengguna menjadi bilangan bulat?

int(input())

float(input())

str(input())

bool(input())

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut jika pengguna memasukkan 7?
x = input("Masukkan angka: ")
print(type(x))

<class 'int'>

<class 'float'>

<class 'str'>

<class 'bool'>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara meminta input pengguna dalam satu baris dengan pesan khusus?

input("Masukkan nama: ")

print(input())

str(input("Masukkan nama: "))

print("Masukkan nama: ")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fungsi mana yang digunakan untuk mencetak output ke layar?

print()

input()

output()

display()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut?

print("Python", "is", "fun", sep="-")

Python is fun

Python-is-fun

Python-is fun

Python is-fun

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?