
TA MODUL 3 (VERSI 1)

Quiz
•
Other
•
University
•
Hard
Ibes Ibes
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut:
```
text = "Hello World"
print(text[____])
```
Indeks manakah yang akan menampilkan karakter 'W'?
5
6
7
8
Answer explanation
Dalam string "Hello World", karakter 'W' berada pada indeks 6 (dimulai dari 0).
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah cara yang benar untuk menambahkan elemen ke dalam list?
```
numbers = [1, 2, 3]
numbers.____(4)
```
add
append
extend
insert
Answer explanation
Method append() digunakan untuk menambahkan satu elemen ke akhir list.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mengakses value 'age' dari dictionary berikut?
```
person = {'name': 'John', 'age': 30}
print(person.____)
```
['age']
.get('age')
Kedua jawaban a dan b benar
('age')
Answer explanation
Dictionary bisa diakses menggunakan bracket notation atau method get().
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah pernyataan yang benar tentang set?
Set dapat berisi duplicate elements
Set bersifat ordered
Set dapat berisi list
Set tidak memiliki urutan tertentu
Answer explanation
Set adalah unordered collection dan tidak memiliki indeks
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut?
```
list1 = [1, 2, 3]
list2 = list1
list1[0] = 4
print(list2)
```
[1, 2, 3]
[4, 2, 3]
[4]
Error
Answer explanation
list2 adalah referensi ke list1, sehingga perubahan list1 mempengaruhi list2.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Operasi manakah yang valid untuk string di Python?
"hello" - "l"
"hello" * 2
"hello" / 2
"hello" + 2
Answer explanation
Operator * valid untuk string, menghasilkan pengulangan string.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah metode yang digunakan untuk menghapus spasi di awal dan akhir string?
strip()
trim()
remove()
clean()
Answer explanation
strip() menghapus whitespace di awal dan akhir string.
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Norwegian to English

Quiz
•
7th Grade - Professio...
14 questions
Intro to Python Programming Quiz 9B

Quiz
•
10th Grade - University
10 questions
Metodologi Penelitian

Quiz
•
University
12 questions
STAY SAFE STAY AT HOME FAMILY

Quiz
•
4th Grade - University
11 questions
Logic

Quiz
•
KG - University
10 questions
CODE BREAKER

Quiz
•
University
12 questions
Fnaf ar

Quiz
•
1st Grade - Professio...
10 questions
PYTHON BASICS

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University