Senior Associate Developer
Senior Associate Developer Interview Questions and Answers
Q1. Explain the difference between IEnumerable and IQueryable in .NET. When would you use one over the other?
IEnumerable is in-memory collection while IQueryable is for querying data from database. Use IEnumerable for LINQ to Objects and IQueryable for LINQ to SQL.
IEnumerable is used for querying data from in-memory collections like List, Array, etc.
IQueryable is used for querying data from a database using LINQ providers like Entity Framework.
IEnumerable executes the query on the client-side, while IQueryable executes the query on the database server.
Use IEnumerable when working wi...read more
Q2. What is Dependency Injection in .NET, and how does it improve application design? Can you provide an example of implementing Dependency Injection in an ASP.NET Core application?
Dependency Injection in .NET is a design pattern where dependencies are injected into a class rather than created within the class itself.
Dependency Injection helps in achieving loose coupling between classes, making the code more maintainable and testable.
It allows for easier swapping of dependencies, promoting flexibility and scalability.
In ASP.NET Core, Dependency Injection is built into the framework and can be configured in the ConfigureServices method of the Startup cla...read more
Senior Associate Developer Jobs
Interview Questions of Similar Designations
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month