
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
KUIZ MINDA
Quiz
•
9th Grade - University
10 questions
ASAS PERMAINAN FUTSAL
Quiz
•
University
10 questions
Masdar
Quiz
•
9th Grade - University
10 questions
ICE Task 1
Quiz
•
University
10 questions
Kawalan Kualiti Produk Elektronik (Latihan 4)
Quiz
•
University
10 questions
Chapter 7 Non Conventional Machining
Quiz
•
University
15 questions
Quiz on Budgeting as a Planning and Control Tools
Quiz
•
University
12 questions
Conditional Statements : Quiz - 4
Quiz
•
University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Other
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University