Question & Answer: bda expression is a style of representing dynamic types. The lambda expr…..

Computer Science C#

Question 9 5 pts Which of the following statement is TRUE? O The lambda expression is nothing but an extension method. The lambda expression is a style of representing dynamic types. The lambda expression is nothing but static delegate method. O The lambda expression is a shorter way of representing anonymous methods. Lambda and Linq extension methods are the same. Question 10 5 pts s => s.Age > 12 && s.Age < 20; is an example of_ anonymous metthod A LINQ query C# Conditional Lambda expression

Which of the following statement is TRUE? The lambda expression is nothing but an extension method. The lambda expression is a style of representing dynamic types. The lambda expression is nothing but static delegate method. The lambda expression is a shorter way of representing anonymous methods. Lambda and Linq extension methods are the same. s = > s.Age > 12 && s.Age

Expert Answer

 

Answer:

Question 9 (D) the Lambda Expression is a shorter way of representing anonymous methods.

For representing the anonymous methods with Lambda Expression you need to use some kind of special syntax. for example

delegate(Student s) { return s.Age => 12 && s.Age < 20; };

Question 10 (D) Lambda Expression

=> this is said to be Lambda operator which help in reducing the size of anonymous methods.

Still stressed from student homework?
Get quality assistance from academic writers!