
String dan List

Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Medium
rochyati aja
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Apa yang terjadi kalau kita lupa menutup string dengan tanda kutip di Python?
Program otomatis menambahkan kutip
Program tetap jalan norma
Python akan memberikan SyntaxError
Python mengubah string jadi angka
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Bagaimana cara membuat string banyak baris di Python?
Pakai tanda kutip " "
Pakai ''' ... ''' atau """ ... """
Pakai tanda kurung ( )
Tidak bisa
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Apa hasil dari perintah berikut?
print(5 * 'hi')
'hi'
'hi5'
'hihihihihi'
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Apa kegunaan \ (backslash) di dalam string?
Untuk menghapus spasi
Untuk mengulang string
Untuk escape karakter khusus seperti kutip
Untuk membuat list
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Apa perbedaan utama string dengan list?
String bisa diubah, list tidak
String hanya angka, list hanya teks
String adalah teks, list bisa menyimpan banyak item dan jenis data
Tidak ada bedanya
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Jika wizard_list = ['spider legs', 'toe of frog', 'eye of newt'], apa hasil print(wizard_list[1])?
spider legs
toe of frog
eye of newt
error
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Mengapa wizard_list[2] = 'snail tongue' bisa dijalankan?
Karena list bisa diubah isinya
Karena string tidak bisa diubah
Karena index list dimulai dari 1
Karena append otomatis
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Kiến thức về hàm print() trong Python

Quiz
•
2nd Grade - University
15 questions
Python Programming Quiz

Quiz
•
12th Grade
10 questions
Kuis Algoritma dalam Bahasa Pemrograman

Quiz
•
12th Grade
15 questions
PBO Kelas XI | Mengenal Tipe Data pada Java

Quiz
•
12th Grade
15 questions
module 0

Quiz
•
12th Grade
10 questions
Python Жолдық және символдық шамалар

Quiz
•
10th Grade
11 questions
Python Programming Basics

Quiz
•
11th Grade
10 questions
Koding dan kecerdasan artifisial

Quiz
•
10th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

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

Interactive video
•
6th - 10th Grade
20 questions
Distribute and Combine Like Terms

Quiz
•
7th - 9th Grade
12 questions
Graphing Inequalities on a Number Line

Quiz
•
9th Grade
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Cell Organelles

Quiz
•
9th Grade
20 questions
Cell Transport

Quiz
•
9th Grade