Python Programming Quiz

Python Programming Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

UAS Desain Media Interaktif

UAS Desain Media Interaktif

12th Grade

15 Qs

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

ukuran data

ukuran data

1st - 12th Grade

10 Qs

Data structure test1

Data structure test1

12th Grade

20 Qs

Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ

Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ

10th - 12th Grade

20 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

Jarkom

Jarkom

1st Grade - Professional Development

11 Qs

HTML Quiz

HTML Quiz

11th Grade - University

15 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Ridwan Mahenra

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa itu variabel dalam pemrograman Python?

Variabel dalam pemrograman Python adalah tipe data.

Variabel dalam pemrograman Python adalah komentar dalam kode.

Variabel dalam pemrograman Python adalah fungsi matematika.

Variabel dalam pemrograman Python adalah lokasi penyimpanan yang digunakan untuk menampung nilai.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Berikan contoh tipe data yang ada dalam Python!

integer, float, string, boolean, list, tuple, set, dictionary

array

char

integer

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa perbedaan antara if, elif, dan else dalam percabangan Python?

If is used as the final condition, elif is used to evaluate the first condition, else is used for additional conditions

If is used for additional conditions after elif, elif is used as the final condition, else is not needed

If is used to evaluate a single condition, elif is used to evaluate additional conditions after if, and else is used as the final condition if all previous conditions are not met.

If is used for multiple conditions, elif is used for a single condition, else is not necessary

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara menggunakan perulangan for dalam Python?

for x in range(5): print(x)

for i in range(5, 10): print(i)

for i in range(10): print(i)

for i in range(5): print(i)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa kegunaan dari fungsi dalam pemrograman Python?

Fungsi hanya membuat kode lebih rumit

Fungsi digunakan untuk mengelompokkan kode dan memisahkan logika program.

Fungsi tidak memiliki peran dalam pemrograman Python

Fungsi digunakan untuk menghapus kode yang tidak diperlukan

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara mengimpor modul eksternal dalam Python?

load nama_modul

import modul

use nama_modul

import nama_modul

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa itu list dalam Python dan berikan contoh penggunaannya!

my_list = ['a', 'b', 'c']

my_list = [1, 2, 3, 'a', 'b', 'c']

my_list = [1, 2, 'a', 'b']

my_list = [1, 2, 3, 4, 5]

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?