PrepAway - Latest Free Exam Questions & Answers

Which code should you use?

You have the following code:

You need to retrieve all of the numbers from the items variable that are greater than 80.
Which code should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
Example: All number larger than 15 from a list using the var query = from num in numbers…
contstruct:
var largeNumbersQuery = numbers2.Where(c => c > 15);

How to: Write LINQ Queries in C#
https://msdn.microsoft.com/en-us/library/bb397678.aspx

One Comment on “Which code should you use?


Leave a Reply