1. What does LINQ stand for in C#? A. Lightweight Query B. Linked Query C. Language-Integrated Query D. Loaded Query Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
2. Which namespace in C# provides the LINQ extension methods? A. System.Query B. System.Linq C. System.Data D. None of the above Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
3. What is the purpose of the Select operator in LINQ? A. Groups the elements of a sequence B. Orders the elements of a sequence C. Projects each element of a sequence D. Filters a sequence based on a predicate Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
4. In LINQ, what is the purpose of the Where operator? A. Projects each element of a sequence B. Orders the elements of a sequence C. Groups the elements of a sequence D. Filters a sequence based on a predicate Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
5. What is the return type of a LINQ query expression? A. IEnumerable B. IQueryable C. List D. Array Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
6. Which LINQ operator is used to sort the elements of a sequence in ascending order based on a key? A. ThenByDescending B. ThenBy C. OrderByDescending D. OrderBy Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
7. In LINQ, what does the First operator do? A. Returns the last element of a sequence B. Returns the number of elements in a sequence C. Returns the first element of a sequence D. Returns a specific element from a sequence Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
8. What is the purpose of the OrderByDescending operator in LINQ? A. Filters a sequence based on a predicate B. Sorts the elements of a sequence in descending order based on a key C. Projects each element of a sequence D. None of the above Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
9. In LINQ, what does the Any operator do? A. Returns a specific element from a sequence B. Returns the number of elements in a sequence C. Determines whether any element exists in a sequence that satisfies a condition D. Determines whether all elements in a sequence satisfy a condition Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
10. Which LINQ operator is used to concatenate two sequences? A. Union B. Intersect C. Except D. Concat Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board