PrepAway - Latest Free Exam Questions & Answers

You need to create an extendable query by using LINQ

You are creating an application that processes a list of numbers.
The application must define a method that queries the list and displays a subset of the numbers to the user.
The method must not update the list.
You need to create an extendable query by using LINQ.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

2 Comments on “You need to create an extendable query by using LINQ

  1. paul_peters says:

    A. could not be compiled because ‘from p in numbersList where p > 10’ needs ‘select p’

    B. could not be compiled because Query is not known class of .net standard.

    D. compiled but it will be just a loop for string where characters ‘s’, ‘e’, ‘l’, ‘e’.. and so on will be processed.

    C. is the right answer.




    4



    0

Leave a Reply