Python Programming Quiz

Python Programming Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

UH Bab 3 XII 3

UH Bab 3 XII 3

12th Grade

10 Qs

reka bentuk interaksi

reka bentuk interaksi

8th - 12th Grade

11 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

POWERPOINT QUIZZ

POWERPOINT QUIZZ

10th - 12th Grade

20 Qs

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 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?