
Struktur Data
Authored by Rizki Adha
Computers
University
Used 1+ 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 akan terjadi jika kode berikut dijalankan?
list1 = [10, 20, 30, 40]
list1.append(50)
print(list1)
[10, 20, 30, 40]
[10, 20, 30, 40, 50]
[50, 10, 20, 30, 40]
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Metode apa yang digunakan untuk menghapus elemen terakhir dari list?
remove()
pop()
delete()
discard()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut?
list2 = ["apel", "mangga", "jeruk"]
list2.insert(1, "pisang")
print(list2)
['apel', 'mangga', 'jeruk', 'pisang']
['pisang', 'apel', 'mangga', 'jeruk']
['apel', 'pisang', 'mangga', 'jeruk']
['apel', 'mangga', 'pisang', 'jeruk']
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara menghapus elemen "banana" dari list berikut?
fruits = ["apple", "banana", "cherry"]
fruits.delete("banana")
fruits.pop("banana")
fruits.remove("banana")
del fruits("banana")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa hasil dari kode berikut?
numbers = [5, 3, 8, 1]
numbers.sort()
print(numbers)
[8, 5, 3, 1]
[1, 3, 5, 8]
[5, 3, 8, 1]
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa metode yang digunakan untuk membalik urutan elemen dalam list?
reverse()
sort(reverse=True)
flip()
invert()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut?
a = [1, 2, 3]
b = a * 2
print(b)
[1, 2, 3, 1, 2, 3]
[2, 4, 6]
[1, 1, 2, 2, 3, 3]
Error
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
Transfer Learning
Quiz
•
University
14 questions
PAW-Quiz PPT Awal
Quiz
•
University
15 questions
Javascript Array dan Object
Quiz
•
University
15 questions
Panduan Pembuatan Blog di Blogspot
Quiz
•
9th Grade - University
15 questions
Bab2 Sistem Komputer Penilaian Sumatif LKS Hal. 34
Quiz
•
9th Grade - University
15 questions
Scratch Text Operators
Quiz
•
KG - Professional Dev...
10 questions
Pretest - Pemrograman Python Trivia Quiz 01
Quiz
•
University
10 questions
Google Workspace
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