You are on page 1of 1

Sets Objective

(True/False) Sets are collections of unique mutable and immutable objects.

Answer: False. Sets are collections of unique immutable objects.

2 (Fill-In) You can create a set from another collection of values by using the built-in function.

Answer: set.

1 (True/False) Sets may be compared with only the == and != comparison operators.

Answer: False. All the comparison operators may be used to compare sets.

2 (Fill-In) A subset is a(n) subset of another set if all the subset’s elements are in the other set
and the other set has more elements.

Answer: proper.

(Fill-In) Two sets are if the sets do not have any common elements.

Answer: disjoint.

1 (True/False) Set method pop returns the first element added to the set.

Answer: False. Set method pop returns an arbitrary set element.

2 (Fill-In) Set method performs a union operation, modifying the set on which it’s called.

Answer: update.

You might also like