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
AnswerD.
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