
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
KDTK LETRIS SOAL
Quiz
•
12th Grade - University
10 questions
Sikap dan perilaku asertif
Quiz
•
10th Grade - University
10 questions
Pretest Bitewing BDS 3
Quiz
•
University
10 questions
produksi masal
Quiz
•
University
10 questions
KALIMAT EFEKTIF
Quiz
•
University
10 questions
Quiz Stakeholder's Day
Quiz
•
University
10 questions
PRE & POST TEST PROSES KIMIA & BIOKIMIA
Quiz
•
University
10 questions
TES AWAL MODUL 2 TIPE A
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University