
Soal Pilihan Ganda Pemrograman Python (1)
Authored by Fatkhul Huda
Science
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang dilakukan fungsi `print()` dalam Python?
Menyimpan data ke dalam file
Menampilkan data di layar
Menghitung nilai rata-rata
Menghapus data dari memori
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mendeklarasikan variabel `x` dengan nilai 10 dalam Python?
`int x = 10`
`x = 10`
`let x = 10`
`var x = 10`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fungsi mana yang digunakan untuk mengubah string menjadi huruf kapital dalam Python?
`capitalize()`
`upper()`
`title()`
`lower()`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa hasil dari ekspresi `3**2` dalam Python?
6
9
8
12
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara membuat list kosong dalam Python?
`[]`
`()`
`{}`
`list()`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah dari berikut ini yang merupakan metode string untuk menghapus spasi dari awal dan akhir string?
`strip()`
`trim()`
`remove()`
`delete()`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut: `print([1, 2, 3] + [4, 5])`?
`[1, 2, 3, 4, 5]`
`[1, 2, 3] [4, 5]`
`[1, 2, 3, [4, 5]]`
`[4, 5, 1, 2, 3]`
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
10 questions
Embriologi jantung
Quiz
•
University
11 questions
SAINS DAN TEKNOLOGI UMAT TERDAHULU
Quiz
•
University
10 questions
KUIZ EKSPERIMEN UJIAN MAKANAN
Quiz
•
8th Grade - University
10 questions
Jack Test
Quiz
•
University
10 questions
WebServer dan WebClient
Quiz
•
University
10 questions
Rantai makanan dan ekosistem
Quiz
•
9th Grade - University
10 questions
Penyebaran Cahaya
Quiz
•
10th Grade - Professi...
10 questions
Kader Muda
Quiz
•
University
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