This guide is for C# and .NET developers in India preparing for interviews, from freshers applying for a first role at a Pune IT services firm or a Bengaluru product company to engineers with several years of experience moving into senior positions. It has 60 questions in three levels: language basics such as types, OOP and collections; then everyday topics like LINQ, async and await, ASP.NET Core middleware, dependency injection and Entity Framework Core; and finally senior topics such as the thread pool, garbage collection, performance and design. Each answer is written the way a strong candidate would say it, with C# code where it helps. The answers are based on C# 12 and .NET 8, and most of them apply to later versions too. Try answering each question aloud before you read the answer, then take the mock test.
Questions you may be asked
What is the difference between C#, .NET and the CLR?
What is the difference between value types and reference types in C#?
What are boxing and unboxing, and why should you avoid them in hot code?
Why are strings immutable in C#, and when should you use StringBuilder?