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...
Hi, I'm Shiva Gautam. With over 15 years of diverse experience in various IT domains, I am now an entrepreneur focusing on both training and software development. My expertise spans across multiple technologies, and I've authored numerous articles on subjects including Java, Python, REACT, NODE, ANGULAR, Cloud, software testing, Django framework, C#, Flutter, Salesforce, Ruby on Rails, .NET, and more. For additional information, please visit shivaconceptsolution.com and kangaroosoftware.net.