
Python Set Pert-9
Quiz
•
Mathematics
•
1st Grade
•
Hard
ricky noviansyah
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa itu tipe data set dalam Python?
Tipe data set dalam Python adalah tipe data yang hanya mengizinkan nilai numerik.
Tipe data set dalam Python adalah tipe data yang tidak memiliki urutan atau indeks, dan tidak mengizinkan duplikat nilai.
Tipe data set dalam Python adalah tipe data yang memiliki urutan dan indeks.
Tipe data set dalam Python adalah tipe data yang hanya mengizinkan nilai karakter.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Berikan contoh penggunaan set dalam Python!
my_set = [1, 2, 3, 4, 5]
my_set = {1, 2, 3, 3, 4, 5}
Contoh penggunaan set dalam Python: my_set = {1, 2, 3, 4, 5} print(my_set)
my_set = set(1, 2, 3, 4, 5)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara membuat set kosong dalam Python?
()
{} atau set()
[]
set([])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah set dalam Python bisa memiliki elemen yang duplikat?
Mungkin
Tidak
Ya
Jarang
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara menambahkan elemen ke dalam sebuah set?
my_set.add(element)
my_set.insert(element)
my_set.update(element)
my_set.append(element)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah set dalam Python bisa berisi tipe data yang berbeda?
Tidak
Mungkin
Ya
Jarang
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara menghapus elemen dari sebuah set?
set.clear()
set.delete(elemen)
set.remove(elemen) atau set.discard(elemen)
set.pop()
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Count Like Coins
Quiz
•
1st - 2nd Grade
15 questions
BEFORE AND AFTER
Quiz
•
KG - 1st Grade
15 questions
Pengenalan set
Quiz
•
1st Grade
20 questions
MATEMATIK T2 - SUKATAN KECENDERUNGAN MEMUSAT
Quiz
•
1st - 7th Grade
15 questions
Ordering Numbers
Quiz
•
1st Grade
20 questions
Half and Quarter
Quiz
•
1st Grade - University
20 questions
Counting Coins
Quiz
•
1st - 2nd Grade
20 questions
Sorting Shapes
Quiz
•
1st Grade - University
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 Mathematics
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
15 questions
Addition and Subtraction
Quiz
•
1st Grade
24 questions
Addition
Quiz
•
1st Grade
15 questions
Addition and Subtraction Facts
Quiz
•
1st - 2nd Grade
15 questions
Greater than, less than, equal to
Quiz
•
1st - 2nd Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade
15 questions
Addition to 10
Quiz
•
1st Grade