nerdexam
GIAC

GSSP-NET · Question #429

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. The…

The correct answer is D. All Classes that have the price of the related book less than or equal to 50. 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 create an ASP.NET Web application using .NET Framework 3.5. The application is a library application that catalogs Classes and books. The application contains a DataContext object named Classes and a related line of business object named Books. The Classes DataContext object is queried by using the following LINQ query: var query = from class in Classes where class.Books.All(b => b.Price <= 50) select class; You have to find out the result that will be returned from the query. What will be the result of the query?

Options

  • AAll books that have a price greater than or equal to 50.
  • BAll books that have a price less than or equal to 50.
  • CAll Classes that have the price of the related book greater than or equal to 50.
  • DAll Classes that have the price of the related book less than or equal to 50.

How the community answered

(55 responses)
  • A
    15% (8)
  • B
    4% (2)
  • C
    5% (3)
  • D
    76% (42)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice