Suppose u and v both have values of type set and are disjoint. Which of the following expressions evaluates to True?
u == v | (u^v)
u == (v^u)
u == v^(u | v)
u == u^(v | u)
Answers
Answered by
1
Answer:
Explanation:
The following is a necessary and sufficient condition:
The sets are disjoint.
(That is, they do not share a common member.)
x is a member of only one of the two sets (i. e. it belongs to one, but not to other.)
The | operator signifies the union of two distinct sets A and B, which results in a new set containing members from both A and B, whereas the symmetric difference will result in a set with items from either A or B but not both. As a result, if two sets A and B have no common item, these operators produce the same result. To put it another way, they shouldn't cross.
Similar questions