C# Interview Questions and Answers (958) - Page 48

Operator Overloading is perform based on?

NOTE: This is objective type question, Please click question title for correct answer.
Dynamic Polymorphism Implemented by?

NOTE: This is objective type question, Please click question title for correct answer.
The 'ref' Keyword in which of the following method/function?

NOTE: This is objective type question, Please click question title for correct answer.
To implement delegates, the necessary condition is?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following statements is correct about a delegate?

NOTE: This is objective type question, Please click question title for correct answer.
What is the purpose of Ilasm.exe?

ILAsm.exe is a command line tool that is shipped with the .NET Framework. It is used to compile programs written in IL and convert them to .exe or .dll files. It is located at <windowsfolder>\Microsoft.NET\Framework\<version> folder.
What is the purpose of Ildasm.exe?

Ildasm.exe is a tool which takes a Portable Executable(PE) file that contains IL code and creates a text file as the input to Ilasm.exe.
This tool is installed as a part of Visual Studio installation. Once we have the compiled code (.exe/.dll), we can open it through the ildasm.exe interface and this tool will display the structure of decompilation.
Ildasm.exe shows only metadata descriptions for .obj and .lib input files.
Ildasm.exe only operates on PE files which are on disk and not on the files installed in the global assembly cache.
What is private constructor and what are some of it's benefits.

Private Constructor is a special instance constructor used in class that contains static memory only.

The primary use of a private constructor is not to allow to create class instance when there are no instance fields or methods, or when a method is called to obtain an instance of a class.

Some benefits are

a) The constructor can only be accessed from static factory method inside the class itself e.g Singleton Class (where not more than one instance of the class exists in the program.)


b) Limit the number of object of a class

c) Preventing creating copy of the class (i.e. copy constructor)

d) A utility class that only contains static methods. (though here we can use a static class but it's an option)

e) Class cannot be inherited
Which of the below operators is used to determine if two strings are identical?

NOTE: This is objective type question, Please click question title for correct answer.
Identify the correct Dataset Architecture in .Net

NOTE: This is objective type question, Please click question title for correct answer.
Passing a variable as a ref parameter you need to.

NOTE: This is objective type question, Please click question title for correct answer.
Passing a variable as a out parameter you need to

NOTE: This is objective type question, Please click question title for correct answer.
What is Interface?

An interface looks like a class, but has no implementation.
Interfaces define properties, methods, and events, which are the members of the interface.
Interfaces contain only the declaration of the members. It is the responsibility of the deriving class to define the members.

Thanks
Amatya
Which one is Client type state management?

NOTE: This is objective type question, Please click question title for correct answer.
Which one is Server type state management?

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories