Posts tagged .NET Interview Questions

.NET Interview Questions

Collected from the Internet: 1. What is the difference between a Struct and a Class? Ans.Structs are value-type variables and are thus saved on the stack -> additional overhead but faster retrieval. Another difference is that structs CANNOT inherit.  Classes are reference types and structs are value types. Since classes are reference type, a class [...]

.NET Interview Questions #2

Collected from the Internet: General Questions 1.   Does C# support multiple-inheritance? No. 2.   Who is a protected class-level variable available to? It is available to any sub-class (a class inheriting this class). 3.   Are private class-level variables inherited? Yes, but they are not accessible.  Although they are not visible or accessible via the class interface, [...]

.NET Assembly Interview Questions

Collected from the Internet: Assembly Questions 1.How is the DLL Hell problem solved in .NET? Ans. Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly. 2.What are the ways to deploy an assembly? Ans. An MSI installer, [...]

.NET Debugging and Testing Questions

Collected from the Internet: Debugging and Testing Questions 1.What debugging tools come with the .NET SDK? Ans. 1. CorDBG – command-line debugger.  To use CorDbg, you must compile the original C# file using the /debug switch. 2. DbgCLR – graphic debugger.  Visual Studio .NET uses the DbgCLR. 2.What does assert() method do? Ans. In debug [...]