.
NET INTERVIEW QUESTIONS
1. Explain role-based security in .NET?
2. Explain the Common Language Runtime (CLR). What are its responsibilities?
3. What is a delegate and how is it different from an event?
4. What are multicast delegates and when are they used?
5. Explain the differences between Func<>, Action<>, and Predicate<>.
6. What is LINQ? How does deferred execution work in LINQ queries?
7. How does LINQ to SQL differ from LINQ to Objects and LINQ to Entities?
8. How does garbage collection work in .NET? What are the generations?
9. What is a memory leak in .NET, and how can it happen despite GC?
10. How would you profile and optimize performance in a .NET application?
11. What are value types stored on the heap? Give examples.
12. What are best practices for error handling in .NET applications?
13. How do you implement logging and diagnostics in .NET Core?
14. What are some common design patterns used in .NET development (Repository, Unit of Work,
etc.)?
15. How do you secure a .NET web app using JWT authentication?
16. Explain the difference between IDisposable and finalizers. When should you use Dispose()?
17. What is the difference between value types and reference types?
18. Explain the concept of boxing and unboxing?
19. What is a deadlock and how can you prevent it?
20. What is Entity Framework Core?
21. What is the difference between Code First and Database First?
22. What are design patterns commonly used in .NET (e.g., Repository, Singleton, Factory)?
23. Explain the differences between inheritance, polymorphism, and abstraction?
24. What are the different types of polymorphism?
25. Explain the difference between the stack and the heap? What is dependency injection?
26. What are the access modifiers in C#?
27. What is ASP.NET?
28. What are the different types of ASP.NET applications (e.g., MVC, Web API)?
29. Explain about major components of the .NET framework?
30. What is a delegate in .NET?