Finding really great interview questions is a challenge. They have to be relevant, current, fair, representative of real knowledge, and you should be able to research the answer if you don’t know.
While technical interview questions are probably not the best gauge of a candidate’s technical skills, they still provide some value: you can find holes in your knowledge to research, and find out about deep issues with a language or platform. At the least, you can quickly become familiar with some of the deeper details of a language that are relevant to daily use, without investing time in developing huge amounts of software.
Below are a collection of .NET interview questions, along with the answers. I hope you find them as useful as I did.
- Scott Hanselman’s ASP.NET Interview Questions
- Good C# Interview Questions for a Senior Dev Position
- .NET Interview Questions and Answers (some answers in the comments)
- Intermediate ASP.NET 2.0 Interview Questions
- ASP.NET Interview Questions
- Commonly Asked SQL Server 2005 Questions
- An absurdly long list of interview questions
These questions scratch the surface of many topics. If you’re looking for some more esoteric or uncommon topics, further topics to investigate could include (in no particular order):
- Suppressing garbage collection (why and how)
- The IntPtr class
- Writing CLS-Complaint code
- The relationship between CLR, CLS, and CIL (CLS is the common minimum all languages must implement; their code is converted to CIL, which can then be run on the CLR). Implementing the CLS, therefore, makes it possible for you to interop with other CLS-compliant languages (C#, VB.NET, IronPython, etc.)
- The .NET compilation process and double-compilation (CIL and native code)
- The yield keyword
- Lambda Expressions (and their relationship to delegates)
- The performance of Generics (vs. non-generic collections)
- Extension methods
- Static constructors
- Synchronization and the double-lock pattern
- The ASP.NET Page Life-Cycle
- Caching in ASP.NET