MCQ
You need to swap the values of two variables X and Y using a temporary variable T. What is the correct sequence?
Unit-2 Computational Thinking and Algorithms
A T = X; X = Y; Y = T
B X = Y; Y = X; T = X
C X = T; T = Y; Y = X
D Y = X; X = Y
Explanation

Store X in T, then put Y into X, and finally put T back into Y to complete the swap.