
Python - Add Set Items - 3

Quiz
•
Other
•
12th Grade
•
Medium
Amy Austin
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you add an item to a set in Python?
thisset.push('orange')
thisset.add('orange')
thisset.append('orange')
thisset.insert('orange')
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add items from another set into the current set?
merge()
join()
update()
concat()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of object can be added to a set using the update() method?
Only sets
Only lists
Any iterable object
Only dictionaries
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid Python data type?
Sets
Lists
Tuples
Arrays
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to remove an item from a set?
thisset.remove('apple')
thisset.delete('apple')
thisset.pop('apple')
thisset.erase('apple')
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you loop through the items of a set?
Using a for loop
Using the loop() method
Using the iterate() method
Sets cannot be looped through
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to join two sets?
update()
join()
merge()
concat()
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
RO59 TA3 Baseline Assessment

Quiz
•
9th - 12th Grade
10 questions
Extended Essay Quiz

Quiz
•
12th Grade
7 questions
Love

Quiz
•
3rd - 12th Grade
10 questions
Physics 1 Ch 1 Review #2

Quiz
•
9th - 12th Grade
15 questions
Kitchen Math LT4 --Use proper technique for dry, liquid & solids

Quiz
•
9th - 12th Grade
15 questions
Ipad

Quiz
•
1st Grade - Professio...
10 questions
Royal high(roblox)

Quiz
•
2nd - 12th Grade
10 questions
National 5 Bus Mgt Marketing - MM Place

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade