Question 1
Which set operator is used to perform the intersection operation on two sets in python?
Question 2
Which operator is used to test if two sets are disjoint in python?
Question 3
Which set operator is used to perform the symmetric difference operation on two sets in python?
Question 4
What is the result of the following set operation?
Question 5
What is the result of the following set operation?
Question 6
What is the result of the following code snippet?
set1={1, 2, 3, 4}
set2={3, 4, 5, 6}
result=set1 | set2
print(result)
Question 7
What is the result of the following code snippet?
set1={1, 2, 3, 4}
set2={3, 4, 5, 6}
result=set1 & set2
print(result)
Question 8
Which operator is used to test if one set is a subset of another set in python?
Question 9
What is the result of the following set operation?
Question 10
Which operator is used to perform the union operation on two sets in python?