Vidyalelo
C# Programming · Q34

LINQ (Language

Programming · C# Programming · question 34

Q34

What is the purpose of the DefaultIfEmpty operator in LINQ?

A.
Returns the number of elements in a sequence
B.
Returns a default value if a sequence is empty
Answer
C.
Returns a specific element from a sequence
D.
None of the above

Answer: Option B

Solution

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