Question 10
Consider the following Python code:P = {1, 2, 3, 4} Q = {3, 4, 5, 6} R = {4, 5, 6, 7} S = {2, 4, 6, 8}
result = ((P | Q) - R) & S print(result) How many elements will be present in result?
Consider the following Python code:P = {1, 2, 3, 4} Q = {3, 4, 5, 6} R = {4, 5, 6, 7} S = {2, 4, 6, 8}
result = ((P | Q) - R) & S print(result) How many elements will be present in result?
Correct answer: 1
Question 10 of 14 in the IIT Madras BS Python Programming (Python (ES)) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term (IIT M ES DIPLOMA AN EXAM QED4 26 Oct). It carries 3 marks.