Microsoft Certified Solutions Developer (MCSD) Certification Practice Test

Image Description

Question: 1 / 400

Which type of collections can be queried using LINQ?

Any collection of objects that implements IList

Any collection of objects that implements IEnumerable/IEnumerable<T>

LINQ, which stands for Language Integrated Query, is designed to work with any collection of objects that implements the IEnumerable or IEnumerable<T> interface. This includes a wide range of collection types, such as arrays, lists, dictionaries, and any custom collections that implement these interfaces. The power of LINQ lies in its ability to provide a consistent querying experience across these various data sources, making it easier for developers to work with data.

Using LINQ with collections that implement IEnumerable allows developers to write queries in a more expressive and readable manner, regardless of the underlying collection type. By leveraging the capabilities of LINQ, developers can filter, project, group, and sort data effectively.

Other choices may suggest that only certain types of collections are usable with LINQ or limit the flexibility of LINQ. Nevertheless, the key feature of LINQ is its support for a broad range of collections, making the option that mentions IEnumerable/IEnumerable<T> the most accurate and representative of LINQ's querying capabilities.

Get further explanation with Examzify DeepDiveBeta

Only arrays

Any DB collection type

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy