🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Closures and Warshall's Algorithm: all 10 questions

Quiz: Closures and Warshall's Algorithm · Question 2 of 10

On A = {1, 2, 3}, what is the symmetric closure of R = {(1, 2), (2, 3)}?

On A = {1, 2, 3}, what is the symmetric closure of R = {(1, 2), (2, 3)}?

  1. A.{(1, 2), (2, 3), (1, 3)}
  2. B.{(1, 1), (2, 2), (3, 3), (1, 2), (2, 3)}
  3. C.{(1, 2), (2, 1), (2, 3), (3, 2)}
  4. D.{(2, 1), (3, 2)}
Answer & explanation

Correct answer: {(1, 2), (2, 1), (2, 3), (3, 2)}

Add the reverse of every pair, and nothing else.

Can you get the rest right without peeking?

Take the timed Quiz: Closures and Warshall's Algorithm quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →