Vidyalelo
C# Programming · Q33

LINQ (Language

Programming · C# Programming · question 33

Q33

In LINQ, what does the DistinctBy operator do?

A.
Sorts the elements of a sequence in ascending order based on a key
B.
Filters a sequence based on a predicate
C.
Returns distinct elements from a sequence based on a specified key selector
Answer
D.
Projects each element of a sequence

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board