
PythonTupeDicSet
Authored by Viết Phan
Professional Development
1st - 3rd Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Select all which is true for Python set
Sets are unordered
set object does support indexing
set doesn’t allow duplicate
sets are written with curly brackets {}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following set operation
set1 = {"Yellow", "Orange", "Black"}
set2 = {"Orange", "Blue", "Pink"}
set3 = set2.difference(set1)
print(set3)
{‘Yellow’, 'Black', ‘Pink’, ‘Blue’}
{‘Pink’, ‘Blue’}
{‘Yellow’, 'Black'}
{‘Yellow’, ‘Blue’}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following set operation
{‘Yellow’, ‘Orange’, ‘Black’, [“Blue”, “Green”, “Red”]}
TypeError: update() doesn’t allow list as a argument.
[‘Yellow’, ‘Orange’, ‘Red’, ‘Black’, ‘Green’, ‘Blue’]
{‘Yellow’, ‘Orange’, ‘Red’, ‘Black’, ‘Green’, ‘Blue’}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following
sampleSet = {"Yellow", "Orange", "Black"}
sampleSet.add("Blue")
sampleSet.add("Orange")
print(sampleSet)
{‘Blue’, ‘Orange’, ‘Yellow’, ‘Orange’, ‘Black’}
{"Yellow", "Orange", "Black","Blue", "Orange"}
{‘Blue’, ‘Orange’, ‘Yellow’, ‘Black’}
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following code
Yellow
Orange
Syntax Error
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following
KeyError: ‘Blue’
TypeError
{‘Yellow’, ‘Orange’, ‘Black’}
[‘Yellow’, ‘Orange’, ‘Black’]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code
TypeError
{‘PYnative’, 1, (‘abc’, ‘xyz’), True}
{‘PYnative’, 1, ‘abc’, ‘xyz’, True}
{‘PYnative’, 1, (‘abc’, ‘xyz’)}
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
20 questions
ULANGAN HARIAN FET
Quiz
•
3rd Grade
20 questions
MEELAD FEST-2021
Quiz
•
1st Grade - University
20 questions
Soal Evaluasi IMPLEMENTASI PERMENAKER NO. 05 TAHUN 2018
Quiz
•
1st Grade
12 questions
Investigación de Mcdos - Diseño de cuestionarios y formatos
Quiz
•
1st - 3rd Grade
15 questions
Aprendizajes Clave
Quiz
•
1st - 3rd Grade
15 questions
Quiz3
Quiz
•
1st - 3rd Grade
20 questions
Żargon hotelarski
Quiz
•
1st Grade
12 questions
Punjab
Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Professional Development
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
22 questions
fractions
Quiz
•
3rd Grade
10 questions
Groundhog Day Trivia Questions
Interactive video
•
3rd - 6th Grade
9 questions
Point of View
Quiz
•
3rd - 4th Grade
10 questions
Area
Quiz
•
3rd Grade
10 questions
Groundhog Behavior and Hibernation Facts
Interactive video
•
3rd - 5th Grade
20 questions
Identifying Fractions
Quiz
•
3rd Grade