C#.NET INTERVIEW QUESTIONS & ANSWERS
1. | What is C#? |
---|---|
|
Posted by Rini Ann Thomas. (Feb 25, 2014) | |
C# can inter operate exceptionally well, with different languages in the .Net platform. |
|
Posted by Pavan. (Feb 21, 2014) | |
C# is fully object oriented programming language to develop dynamic web applications in .net frame work. |
|
Posted by SK JANIBASHA. (Dec 17, 2013) | |
C# is an object oriented and user friendly. It gives security and reusability. We can develop multiple applications. |
|
Posted by Ashok Kumar. (Oct 26, 2013) | |
C# is a language which was developed using the concepts of Object Oriented Programming like Encapsulation, Polymorphism, Classes, Objects, Inheritance. Also C# is a flexible language which can be used as a basic tool to develop ASP.NET Web Applications, Windows Workflow Foundation, Windows Presentation Foundation, etc. . |
|
Posted by Achal Pagar. (Oct 16, 2013) | |
C# is pure object oriented language that supports many type of developing appliction such as selverlight, wcf, mvc, console, website etc; also suporting for indiviusal software. . |
|
Posted by Jayesh. (Oct 15, 2013) | |
C# is an object oriented, type safe and managed language that is compiled by .Net framework to generate Microsoft Intermediate Language. |
|
Posted by Sujit. (Oct 09, 2013) | |
C# is a pure object oriented language it is used for developing application. It’s developed by Andres Hajasberg. |
2. | What is the difference between abstract classes and interface? |
---|---|
Abstract class can have concrete methods while interfaces have no methods implemented. Interfaces do not come in inheriting chain, while abstract classes come inheritance. |
Posted by Surender. (Nov 14, 2013) | |||||||||||||
1) Abstract class contain variable deceleration but interface does not contain variables deceleration. |
|||||||||||||
Posted by Niranjan. (Sep 23, 2013) | |||||||||||||
Abstract class requires keyword overide to have access of methods in child class while in interface it doesn’t.. multiple inheritance is achieved in interfaces while not in abstract class. |
|||||||||||||
Posted by Shahbaz. (Jun 09, 2013) | |||||||||||||
|
|||||||||||||
Posted by Yogesh Niranjan. (Apr 22, 2013) | |||||||||||||
Abstract class can contain both abstract method as well as non abstract method but interface is more than abstract in with all the methods are (by default) abstract. |
3. | Where are the header files? |
---|---|
There aren't any. C# does not use header files like C or C++ do.Instead, code is compiled into assemblies which may be referenced in a C# application. |
4. | What is a delegate? |
---|---|
Delegate is a class that can hold a reference to a method or a function. Delegate class has a signature and it can only reference those methods whose signature is compliant with the class. Delegates are type safe functions pointers or callbacks. |
Posted by Pratik Singh. (Feb 13, 2014) | |
Delegates is a function pointer like in C.Which holds the references of the method. It has two type |
|
Posted by Ashok Patel. (Dec 02, 2013) | |
Delegate is a point to a function or method because it is hold the reference of the method or function. |
|
Posted by Shahbaz. (June 09, 2013) | |
It’s a method pointer which points to method. The return type of delegate should be same as of method to which its pointing. Parameter list and type of parameter also same as of the method to which it’s pointing. ie. signature of delegate should be same as of method. Types 1.Single delegate 2.Multicasting method. |
5. | What is the difference between convert.to.string and .to.string() method? |
---|---|
Convert function handles nulls while i.string() does not it will throw a null reference exception error. |