Direction: Choose the correct option
Q1.
What is a set in Python?
Direction: Choose the correct option
Q2.
How do you create an empty set?
Direction: Choose the correct option
Q3.
What is the output of `{1,2,3} | {2,3,4}`?
Direction: Choose the correct option
Q4.
How do you add an element to a set `s`?
Direction: Choose the correct option
Q5.
What does `s.remove(5)` do if 5 is not in the set?
Direction: Choose the correct option
Q6.
What is the output of `{1,2,3} & {2,3,4}`?
Direction: Choose the correct option
Q7.
How do you test if a set is a subset of another?
Direction: Choose the correct option
Q8.
Which of the following is a valid set?
Direction: Choose the correct option
Q9.
What does `s = set([1,2,2,3])` produce?
Direction: Choose the correct option
Q10.
Can a set contain another set?
