IT 117: Intermediate Scripting
Class 8 Ungraded Quiz

Can a value appear more than once in a set?

What does it mean for a set B to be a subset of set A?

What is the union of the sets A and B?

What is the intersection of the sets A and B?

What is the difference of the sets A and B?

Write the Python statement to create an empty set named s1.

Write a Python statement to create the set s2 containing the values
1, 2 and 3, using a set literal.

If the variable s1 pointed to an empty set,
what would you see if you printed this variable?

Name the two set methods that can be used to add elements to a set.

Name the two set methods that can be used to remove an element from a set.