
Struktur Data
Quiz
•
Computers
•
University
•
Hard
Rizki Adha
Used 1+ times
FREE Resource
Enhance your content
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Kuis Scratch SD Barunawati
Quiz
•
5th Grade - University
12 questions
UTS Semester 1 Informatika 2024/2025
Quiz
•
8th Grade - University
10 questions
Etika Profesi dan Haki_Pertemuan 14
Quiz
•
University
15 questions
Understanding Algorithms and Pseudocode
Quiz
•
12th Grade - University
7 questions
Data analisis
Quiz
•
4th Grade - University
10 questions
scratch quiz
Quiz
•
1st Grade - University
10 questions
Posttes Pewarisan Pertemuan 1
Quiz
•
University
15 questions
LATIHAN SOAL PEMROGRAMAN
Quiz
•
9th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
