GSSP-NET · Question #383
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You have recently finished development of an ASP.NET Web application…
The correct answer is A. They are more concise and readable, particularly when filtering multiple conditions. B. They can be ported to other data sources with slight or no alteration. C. They provide powerful filtering, ordering, and grouping capabilities with least application code. See the full explanation below for the reasoning.
Question
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You have recently finished development of an ASP.NET Web application using .NET Framework 3.5. You have written complex foreach loops to retrieve data from collections. However, you want to modify the application, so that it uses LINQ queries in place of foreach loops. What will be the advantages of using LINQ queries instead of foreach GIAC GSSP-.NET Exam loops? Each correct answer represents a part of the solution. Choose all that apply.
Options
- AThey are more concise and readable, particularly when filtering multiple conditions.
- BThey can be ported to other data sources with slight or no alteration.
- CThey provide powerful filtering, ordering, and grouping capabilities with least application code.
- DThey provide lambda expression in the form of an expression tree.
How the community answered
(48 responses)- A73% (35)
- D27% (13)
Community Discussion
No community discussion yet for this question.