Soal Pilihan Ganda Pemrograman Python (1)

Soal Pilihan Ganda Pemrograman Python (1)

University

10 Qs

quiz-placeholder

Similar activities

C++ Array Quiz

C++ Array Quiz

University

10 Qs

Miniblok 3 - TA Gasal 2023/2024

Miniblok 3 - TA Gasal 2023/2024

University

15 Qs

Respon Medis Akut

Respon Medis Akut

1st Grade - University

10 Qs

REVIEW ANATOMI I

REVIEW ANATOMI I

University

15 Qs

Pre Tes Fisika Terapan Teknika

Pre Tes Fisika Terapan Teknika

University

10 Qs

Formulasi sediaan larutan

Formulasi sediaan larutan

University

10 Qs

Kuis 02 MK3P _ Bahaya dan Resiko

Kuis 02 MK3P _ Bahaya dan Resiko

University

10 Qs

K3

K3

University

10 Qs

Soal Pilihan Ganda Pemrograman Python (1)

Soal Pilihan Ganda Pemrograman Python (1)

Assessment

Quiz

Science

University

Practice Problem

Hard

Created by

Fatkhul Huda

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa yang dilakukan fungsi `print()` dalam Python?

Menyimpan data ke dalam file

Menampilkan data di layar

Menghitung nilai rata-rata

Menghapus data dari memori

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara mendeklarasikan variabel `x` dengan nilai 10 dalam Python?

`int x = 10`

`x = 10`

`let x = 10`

`var x = 10`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fungsi mana yang digunakan untuk mengubah string menjadi huruf kapital dalam Python?

`capitalize()`

`upper()`

`title()`

`lower()`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa hasil dari ekspresi `3**2` dalam Python?

6

9

8

12

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara membuat list kosong dalam Python?

`[]`

`()`

`{}`

`list()`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Manakah dari berikut ini yang merupakan metode string untuk menghapus spasi dari awal dan akhir string?

`strip()`

`trim()`

`remove()`

`delete()`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut: `print([1, 2, 3] + [4, 5])`?

`[1, 2, 3, 4, 5]`

`[1, 2, 3] [4, 5]`

`[1, 2, 3, [4, 5]]`

`[4, 5, 1, 2, 3]`

Create a free account and access millions of resources

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?