LyraLearn AI Learning Platform
Exams
← Back to the lesson
Module 2 Β· Quiz

LINQ, Delegates, and Interfaces

1. What is the main reason for the database being hit multiple times in the given LINQ example?
2. What is the difference between IEnumerable and IQueryable in terms of execution location?
3. What type of method reference does a delegate represent in C#?
4. In what scenario would returning IEnumerable from a repository be the appropriate choice?