Scenario: You are working on a project that involves querying a list of products based on their category. Which LINQ operator would you use to accomplish this task?

  • Select
  • Where
  • OrderBy
  • GroupBy
The correct option for querying a list of products based on their category is the Where operator. The Where operator is used to filter elements based on a specified condition, allowing you to retrieve only the products that belong to a specific category.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *