Vidyalelo
C# Programming · Q45

LINQ (Language

Programming · C# Programming · question 45

Q45

In LINQ, what does the ElementAtOrDefault operator do?

A.
Returns the number of elements in a sequence
B.
Returns the first element of a sequence
C.
Returns the element at a specified index in a sequence, or a default value if the index is out of range
Answer
D.
Returns the last element of a sequence

Answer: Option C

Solution

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