Lambda Expressions Quiz
Below are the answers to the Lambda Expressions Quiz, along with a brief discussion.
1. True. Lambda expressions as simply anonymous methods with a special syntax that usually makes short one line methods easier to read and write.
2. False. Lambda expressions are always anonymous. You can't give them a name.
3. Lambda operator ( =>).
4. x => x < 0
5. False. They can have 0, 1, or more parameters. Any amount besides 1 will mean that the parameters must be contained in parentheses. If there's only one parameter, the parentheses can be left off.
6. True. This is different from a normal method call, which doesn't.