Solved

Public Static Void ExchangeContents (Ref T Value1, Ref T Value2)

Question 18

Multiple Choice

public static void ExchangeContents (ref T value1, ref T value2) {
T temp;
Temp = value1;
Value1 = value2;
Value2 = temp;
}
​Which of the following is TRUE regarding the above segment of code?


A) ​The segment of code is defining a generic method.
B) ​T is a placeholder for the data type.
C) ​Data in the memory locations value1 and value2 are swapped.
D) ​All of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions