Looking for .Net interview questions? Here is the list of most important questions that can be asked in interviews. Make yourself ready with this comprehensive list of interview questions.
.NET interview questions for experienced:
1. Describe what an Interface is and how it’s different from a Class. When would you want to use an abstract class and interface?
2. Why would anyone need to implement their own hashtable or linked list?
3. Can you prevent your class from being inherited by another class? How?
4. When do you absolutely have to declare a class as abstract?
5. Can static constructors use optional arguments?
6. What is Reflection?
7. What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?
8. Name design patterns and principles you know and how they are utilized in .NET Framework?
9. What is boxing and unboxing? What are the performance implications?
10. What is shadowing and overriding, when do you prefer to use one over the other?
11. What are the 3 approaches to handling exceptions in a Web application?
12. How can error events be used to handle exceptions?
13. How many catch statements can be associated with single try statement?
14. What is Marshalling?
15. How to create a shared assembly or add an assembly to GAC?
16. How was XML handled during COM times?
17. Can you explain why your project needed XML?
18. How does the XmlSerializer work? What ACL permissions does a process using it require?
19. What is the significance of the "PropertySpecified" pattern used by the XmlSerializer? What problem does it attempt to solve?
20. How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?
21. How do short-circuited operators work?
22. How do you read in configuration settings from the application config file?
23. Why Session states works on some web servers but not on others?
24. How the execution process takes place for the managed code?
25. How does windows service lifecycle differ from a "standard" EXE?
26. How is the development of a Windows service different from a Windows Forms application?
27. How do you give a Windows service specific permissions?
28. If I’m developing an application that must accommodate multiple security levels through a secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?
29. Explain the Event Lifecycle of ASP.net 2.0?
30. How do you secure connection strings in ASP.net?
31. Are the standard library generic collection classes thread safe?
32. What's an extension method?
33. What's the difference between XmlDocument and XmlReader?
34. How do you read in configuration settings from the application config file?
35. Which of the ASP: whatever controls would you ever use in production and why?
36. How does an App domain get created?
37. When would using Assembly.LoadFrom or Assembly.LoadFile be appropriate?
38. What is an Assembly Qualified Name? Is it a filename? How is it different?
39. What is Inversion of Control? How does that relate to dependency injection?
40. How does a 3 tier application differ from a 2 tier one?
41. What are some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?
42. What's the difference between a web server, web farm, and web garden? How would your web application need to change for each?
43. What do you think is good about .NET?
44. What do you think is bad about .NET?
You can also ask some open-ended questions to gauge the knowledge, passion and interest of the candidate:
45. What is something substantive that you've done to improve as a developer in your career?
46. Show me a portfolio of all the applications you worked on, and tell me how you contributed to design them.
47. You've just been assigned to a project in a new technology how would you get started?
48. What value do daily builds, automated testing, and peer reviews add to a project? What disadvantages are there?
49. What elements of OO design are most prone to abuse? How would you mitigate that?
50. When do you know your code is ready for production?
51. Describe to me some bad code you've read or inherited lately.
Use this list of .Net Interview Questions for interview preparation. Read them, bookmark them, and even add your own interview questions in the comments below.