Pregunta de entrevista de TIAA

1. What is the difference between Task, Thread, and async/await in .NET? 2. How does the IEnumerable interface differ from IQueryable? When would you use each? 3. What are extension methods in C# and how do they work under the hood? 4. Explain the concept of boxing and unboxing. How does it impact performance? 5. What is the difference between a struct and a class in .NET? 6. What are value types and reference types? Give examples. 7. How does the garbage collector work in .NET? What are generations in GC? 8. How does dependency injection work in .NET Core? What are the lifetimes of services? 9. What is middleware in ASP.NET Core? How does the pipeline work? 10. What is the difference between AddTransient, AddScoped, and AddSingleton in DI?