Vidyalelo
C# Programming · Q39

LINQ (Language

Programming · C# Programming · question 39

Q39

In LINQ, what does the LastOrDefault operator do?

A.
Returns the first element of a sequence that satisfies a condition
B.
Returns the only element of a sequence that satisfies a condition, or a default value if no such element is found
C.
Returns the last element of a sequence that satisfies a condition, or a default value if no such element is found
Answer
D.
Returns the number of elements in a sequence

Answer: Option C

Solution

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