-
All the variables local to a method in C# must be initialized before they can be used
Skill/Topic: BeginnerA) TrueB) False
-
Is there regular expression (regex) support available to C# developers?
Yes. The .NET class libraries provide support for regular expressions. Look at the documentation for the System.Text.RegularExpressions namespace.
-
What are the ways to deploy an assembly?
An MSI installer, a CAB archive, and XCOPY command.
-
What does assert() do?
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.
-
How do you generate documentation from the C# file commented properly with a command-line compiler?
Compile it with a /doc switch.
-
How is the DLL Hell problem solved in .NET?
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.
-
What is the .NET datatype that allows the retrieval of data by a unique key?
HashTable. What is class SortedList underneath?
-
-
Why cannot you specify the accessibility modifier for methods inside the interface?
They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice, you are not allowed to specify any accessibility, it is public by default.
-
What is an interface class?
It is an abstract class with public abstract methods all of which must be implemented in the inherited classes.
-
What is the top .NET class that everything is derived from?
System.Object.
-
How's method overriding different from overloading?
When overriding, you change the method behavior for a derived class. Overloading simply involves having a method with the same name within the class.
-
Is XML case-sensitive?
Yes, so and are different elements.
-
What's the top .NET class that everything is derived from?
System.Object.
-
What's the implicit name of the parameter that gets passed into the class' set method?
Value, and its datatype depends on whatever variable we're changing.
-
-
All the C# programs must have the following statement
Skill/Topic: BeginnerA) using DotNetB) using SystemC) include System
-
There must be at least the following function in a C# program
Skill/Topic: BeginnerA) main()B) Main()C) Enter()
-
A code block in C# is enclosed between
Skill/Topic: BeginnerA) < >B) [ ]C) { }
-
The C# code files have an extension
Skill/Topic: BeginnerA) .csharpB) .csC) #
C# Interview Questions
Ans