
Pemrograman Python
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Hadziq Agasta
Used 5+ times
FREE Resource
Enhance your content in a minute
39 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mendeklarasikan variabel dengan benar di Python?
int x = 5
x = "5"
var x = 5
let x = 5
define x = 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang akan terjadi jika kita menuliskan kode berikut? x = 10 x = "Halo" print(x)
Error karena tipe data berbeda
Output: 10
Output: Halo
Error karena variabel tidak bisa diubah
Output: None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah nama variabel yang valid dalam Python?
2x = 10
nama-siswa = "Budi"
nama_siswa = "Budi"
nama siswa = "Budi"
class = "A"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi perintah type() dalam Python?
Menentukan panjang string
Mengetahui tipe data dari sebuah variabel
Mengubah tipe data variabel
Menentukan tipe data variabel
Menghapus tipe data dari memori
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut! a = "10" b = 5 print(a + b) Apa hasilnya?
10
5
105
15
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi dari int(2.8) dalam Python adalah ....
Mengubah integer 2.8 menjadi string "2.8"
Mengubah float 2.8 menjadi integer 2
Mengubah integer 2.8 menjadi float 2.8
Membulatkan 2.8 menjadi 3
Menyimpan 2.8 tanpa mengubah tipenya
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hasil dari float("3") adalah ....
String "3"
Integer 3
Float 3.0
Error, karena "3" bukan angka
None
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
34 questions
Asas Sains Komputer Tingkatan 1
Quiz
•
5th - 12th Grade
35 questions
Microsoft Word 2016 Basics - Unit 7 - 13
Quiz
•
9th - 12th Grade
40 questions
[SMP-VIII] ASAS 2024 Ganjil
Quiz
•
8th Grade - University
40 questions
[SMP-IX] ASAS 2024 Ganjil
Quiz
•
9th Grade - University
40 questions
National 5 Computing Science - Revision 2
Quiz
•
10th - 12th Grade
35 questions
Python - 2.தரவு அருவமாக்கம்
Quiz
•
12th Grade
35 questions
Asesmen Sumatif
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
