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
Apa itu variabel dalam Python?
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 Wayground
50 questions
DASAR PYTHON

Quiz
•
11th Grade
50 questions
STRATEGI ALGORITMIK DAN PEMROGRAMAN KELAS XI

Quiz
•
11th Grade
50 questions
EXAM REVIEW: Computing Principles

Quiz
•
9th - 12th Grade
50 questions
Python List Quiz_10

Quiz
•
11th Grade
50 questions
Ulangan harian

Quiz
•
11th Grade
50 questions
Summer Quiz for Senior Class - Quiz Three

Quiz
•
9th - 12th Grade
50 questions
Databases

Quiz
•
KG - 12th Grade
50 questions
Soal Campuran

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade