Question: How would you write a delegate named ResultCallback with an int parameter named responseCode?

  1. public delegate ResultCallback(int responseCode);
  2. public delegate void ResultCallback<(int) responseCode>;
  3. public void delegate ResultCallback\;
  4. public delegate void ResultCallback(int responseCode);

Answer: The correct answer of the above question is Option D:public delegate void ResultCallback(int responseCode);