
Struktur Data

Quiz
•
Computers
•
University
•
Hard
Rizki Adha
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
Type data python

Quiz
•
9th Grade - University
10 questions
Untitledquiz

Quiz
•
1st Grade - University
10 questions
Bahasa Pemrograman Python

Quiz
•
University
15 questions
Python Programming Intermediate-1

Quiz
•
University
6 questions
Quiz algoritma

Quiz
•
3rd Grade - University
5 questions
Python for AI #4

Quiz
•
University
10 questions
Ulangan Harian Kelas XII

Quiz
•
12th Grade - University
12 questions
javaquizvivek

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University