PrepAway - Latest Free Exam Questions & Answers

What is the result of the query?

You are creating an ASP.NET application by using Microsoft .NET Framework 3.5.
The application is a library application that catalogs subjects and books.
The application contains a DataContext object named Subjects and a related line of business object named Books.

The Subjects DataContext object is queried by using the following LINQ query.

var query = from subject in Subjects
where subject.Books.All(b => b.Price <= 25)
select subject;

You need to find out the results that will be returned from the query.

What is the result of the query?

PrepAway - Latest Free Exam Questions & Answers

A.
All books that have a price less than or equal to 25

B.
All books that have a price greater than or equal to 25

C.
All subjects that have the price of the related book less than or equal to 25

D.
All subjects that have the price of the related book greater than or equal to 25


Leave a Reply