You need to write a multicast delegate that accepts a DateTime argument and returns a Boolean value.
Which code segment should you use?
A.
public delegate int PowerDeviceOn(bool, DateTime);
B.
public delegate bool PowerDeviceOn(Object, EventArgs);
C.
public delegate void PowerDeviceOn(DateTime);
D.
public delegate bool PowerDeviceOn(DateTime);
Explanation:
A & C does not return a type Bool
B does not accept a parameter of type DateTime
Correct answer is D