Python Programming Quiz

Python Programming Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Data structures, operators and variables

Data structures, operators and variables

9th - 12th Grade

10 Qs

Mastering Python Loops and Functions

Mastering Python Loops and Functions

10th Grade - University

20 Qs

python intro

python intro

4th - 12th Grade

17 Qs

Python Lists

Python Lists

8th - 12th Grade

15 Qs

Understanding Lists in Python

Understanding Lists in Python

12th Grade

15 Qs

Python List Mastery

Python List Mastery

12th Grade

10 Qs

Exploring Python Fundamentals

Exploring Python Fundamentals

12th Grade - University

15 Qs

Section 3D: Collect and process data using dictionaries

Section 3D: Collect and process data using dictionaries

12th Grade

15 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Ridwan Mahenra

Used 1+ times

FREE Resource

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]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?