Apa itu variabel dalam Python?
Python I

Quiz
•
Computers
•
11th Grade
•
Hard
Rahmat BP
Used 2+ times
FREE Resource
55 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Sebuah tipe data
Sebuah fungsi
Sebuah nama yang digunakan untuk menyimpan data
Sebuah modul
complexSebuah operator
Answer explanation
Variabel adalah nama yang digunakan untuk menyimpan data.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Tipe data apa yang digunakan untuk menyimpan angka bulat di Python?
String
Float
Integer
Boolean
Complex
Answer explanation
Tipe data untuk angka bulat adalah Integer.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Bagaimana cara mendefinisikan variabel dengan nilai string di Python?
nama = Nurul
nama = "Nurul"
nama = 123
nama = True
nama = 12.5
Answer explanation
Nilai string harus diapit oleh tanda petik.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa hasil dari operasi berikut: type(5.5) ?
<class 'str'>
<class 'int'>
<class 'float'>
<class 'bool'>
<class 'complex'>
Answer explanation
5.5 adalah tipe data float.
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Manakah dari berikut ini yang merupakan variabel yang valid di Python?
1nama
nama_depan
nama depan
nama%lengkap
@nama
Answer explanation
Variabel yang valid hanya boleh mengandung huruf, angka, dan underscore, dan tidak boleh diawali angka.
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Apa output dari kode berikut: print('5' + '5')?
10
55
Error
5 5
5+5
Answer explanation
Penggabungan dua string menghasilkan '55'.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Tipe data apa yang digunakan untuk menyimpan nilai benar/salah?
Integer
String
Float
Boolean
Complex
Answer explanation
Tipe data untuk nilai benar/salah adalah Boolean.
Create a free account and access millions of resources
Similar Resources on Quizizz
60 questions
Python Baseline Test (PCAP I)

Quiz
•
9th Grade - Professio...
50 questions
Quiz Pengembangan Perangkat Lunak

Quiz
•
10th Grade - University
50 questions
LATIHAN SOAL PTS GENAP KELAS 8

Quiz
•
11th - 12th Grade
50 questions
PYTHON BASICS GRADE 11

Quiz
•
11th - 12th Grade
50 questions
SOAL TIK KLS 11.1 PTS1 24-25

Quiz
•
11th Grade
50 questions
SOAL TIK KELAS 11.2 PTS1 24-25

Quiz
•
11th Grade
51 questions
Computer Science 11

Quiz
•
11th Grade
50 questions
AP CSP Midterm Exam Review

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University