
List, Tuple, dan Set pada Python
Authored by Sartini Sartini
Computers
12th Grade
Used 43+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Bagaimana cara menambahkan elemen "orange" ke akhir list fruits?
fruits.add("orange")
fruits.insert("orange")
fruits.append("orange")
fruits[3] = "orange"
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Apa output dari kode tersebut?
[10, 20, 30]
[10, 20, 30, 40]
[20, 30, 40, 50]
[20, 30, 40]
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Apa output dari kode tersebut?
["John", "Bob"]
["John", "Alice", "Bob"]
["Alice", "Bob"]
Error
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Bagaimana cara mengubah elemen ketiga menjadi "purple"?
colors[3] = "purple"
colors.replace("blue", "purple")
colors.update(2, "purple")
colors[2] = "purple"
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Apa output dari kode tersebut?
["cat", "rabbit", "dog", "bird", "fish"]
["rabbit", "cat", "dog", "bird", "fish"]
["cat", "dog", "rabbit", "bird", "fish"]
["cat", "dog", "bird", "fish", "rabbit"]
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Apa output dari kode tersebut?
None
["a", "b", "c"]
[]
Error
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Kode di atas bertujuan untuk menambahkan angka 50 ke dalam list numbers. Pilihan metode yang tepat untuk melengkapi kode tersebut adalah. . .
insert
append
extend
pop
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?