Question 1
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 2
Which set operator is used to perform the intersection operation on two sets in python?
Question 3
Which operator is used to perform the union operation on two sets in python?
Question 4
Which operator is used to test if two sets are disjoint in python?
Question 5
Which set operator is used to perform the symmetric difference operation on two sets in python?
Question 6
What is the result of the following set operation?
Question 7
Which operator is used to test if one set is a subset of another set in python?
Question 8
What is the result of the following set operation?
Question 9
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 10
What is the result of the following set operation?