Vidyalelo
Python · Q36

Python Sets MCQs: Exam

Programming · Python · question 36

Q36

What is the purpose of the intersection() method for sets?

A.
Returns a new set with elements common to both sets
Answer
B.
Returns the union of two sets
C.
Returns the difference of two sets
D.
Returns the symmetric difference of two sets

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board