Skip to main content

Posts

Showing posts with the label ASP.NET Interview Question

Create 250 .NET Core Interview Question and Answer

  C# Interview Questions (50) 1. What is C#? Answer: C# is a modern, object-oriented programming language developed by Microsoft, running on the .NET framework. It’s used for building Windows applications, web services, and games via Unity. 2. Explain value types vs. reference types. Answer: Value types (e.g., int , struct ) store data directly in memory, while reference types (e.g., class , string ) store references to memory locations. Value types are stack-allocated; reference types are heap-allocated. 3. What is boxing and unboxing? Answer: Boxing converts a value type to a reference type (e.g., int to object ). Unboxing converts a reference type back to a value type. Both impact performance due to memory overhead. 4. What is the static keyword? Answer: static declares members (methods, fields) that belong to the type itself, not instances. A static class cannot be instantiated. 5. Explain delegates. Answer: Delegates are type-safe function pointers that reference meth...