
TA MODUL 3 (VERSI 1)
Authored by Ibes Ibes
Other
University
Used 3+ 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
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.
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
Ekstraksi Bahan Pangan
Quiz
•
10th Grade - University
10 questions
Biokimia Pangan
Quiz
•
University
15 questions
Mekanika Tanah 1
Quiz
•
University
10 questions
Set Up Products on WooCommerce
Quiz
•
University
15 questions
Pengajian AM Sem 1 (Latihan Set 4)
Quiz
•
KG - Professional Dev...
10 questions
SM Chapter 5: Competitive Dynamics
Quiz
•
University
10 questions
Quiz Tugas Akhir / Skripsi DKV
Quiz
•
University
10 questions
QUIZ YOUNG MERCY
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University