Which built-in delegate type should represent a method that takes a string and returns nothing?
Correct answer B. Action<string>
Explanation
Action delegates represent methods that return void, so Action takes one string and returns nothing. Func takes no parameters and returns a string. Predicate returns a bool. Func is invalid because void cannot be used as a type argument. Lambdas such as s => Console.WriteLine(s) convert to Action.
Answer checked How we write and check questions
Discussion