Search Header Logo

Quiz Python Dasar 1

Authored by Fatkhul Huda

Science

University

Used 2+ times

Quiz Python Dasar 1
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 • 1 pt

Apa itu Google Colab?

Aplikasi pengedit gambar

Layanan cloud untuk menulis kode Python

Sistem operasi berbasis Linux

Program untuk membuat website

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa fungsi dari perintah print() dalam Python?

Menyimpan data ke file

Mencetak teks atau variabel ke layar

Menghentikan program

Membaca input dari pengguna

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara mendeklarasikan sebuah variabel dalam Python?

var x = 10

x = 10

int x = 10

declare x = 10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fungsi mana yang digunakan untuk menghitung panjang suatu string?

length()

size()

len()

count()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa hasil dari ekspresi 2**3 dalam Python?

6

8

5

9

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut? x = [1, 2, 3] x.append(4) print(x)

[1, 2, 3]

[1, 2, 3, 4]

[4, 1, 2, 3]

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Perintah import numpy as np digunakan untuk mengimpor library apa?

Matplotlib

Numpy

Pandas

Scikit-learn

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