
Python Programming Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
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
Similar Resources on Wayground
15 questions
Python функциялары 7 сынып

Quiz
•
12th Grade - University
20 questions
คำสั่งพื้นฐานในภาษา Python (เก็บคะแนนครั้งที่ 2)

Quiz
•
12th Grade
10 questions
PI Mod 1 quiz

Quiz
•
9th - 12th Grade
15 questions
PCEP Section 2B: Perform different types of iterations

Quiz
•
12th Grade
15 questions
Revision - CSV File Handling

Quiz
•
12th Grade
20 questions
Python Basics

Quiz
•
12th Grade
10 questions
Data Types Quiz

Quiz
•
12th Grade
20 questions
Python In transit loops and iterations

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade