Take query expression is used to limit number of results - LINQ

Q.  Which query expression is used to limit the number of results?
- Published on 31 Aug 15

a. Skip
b. Take
c. Where
d. Select

ANSWER: Take
 
Take function takes a number of elements from one collection, and places them in a new collection.
This method is available in the System.Linq namespace that allows you to get the specified number of contiguous elements from the start of a sequence.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)