Question
When is a lambda expression most appropriate?
Select an option. Your answer will be checked instantly.
Correct Answer: A. For a small anonymous function used briefly, such as a sorting key
Explanation:
A lambda provides a concise unnamed function consisting of a single expression. It is useful for simple temporary operations but not for complex multi-step logic.
Leave a Reply