Q. What is the output of {1, 2, 3} – {2}?

A
{1, 2, 3}
B
{2}
C
{1, 3}
D
Error
Solution:

The – operator performs set difference, removing 2, resulting in {1, 3}.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!