Posts tagged .NET Interview Questions
.NET Interview Questions
0Collected 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 variable can be assigned null.But we cannot assign null to a struct variable, since structs are value type.
.NET Interview Questions #2
0Collected 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, they are inherited. 4. Describe the accessibility modifier "protected internal". It is available to classes that are within the same assembly and derived from the specified base class. 5. More >
.NET Assembly Interview Questions
0Collected 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, a CAB archive, and XCOPY command. 3.What is a satellite assembly? Ans. When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized More >
.NET Debugging and Testing Questions
0Collected 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 compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true. 3.What’s the More >