FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

C#.NET INTERVIEW QUESTIONS & ANSWERS

1. What is C#?
 
  • C# is a new object-oriented language from Microsoft that is currently used for application development on the .NET platform.
  • It exhibits features found in languages such as C++, Java, Smalltalk, and Perl, among others.
  • C# has been submitted to the standards body.
  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.

Your Name Your Email-ID
Your Answer
 
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.

2) Abstract class contain constructor but interface does not contain constructor.

3) Abstract class contain access specifiers but interface does not contain access specifiers.

4) Abstract class contain both abstract and non abstract methods.

5)abstract does not support multiple inherits but interface supports multiple inherits.

  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)
 
 Abstract classesInterface
1.Can contain declaration & also implementationClass can contain only declaration
2.A class may inherit only abstract class.A class may inherit several interface.
3.An abstract class provide complete,default code or just the details that have to be override.An interface can not provide any code just the signator.
  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.

Your Name Your Email-ID
Your Answer
 
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.
Your Name Your Email-ID
Your Answer
 
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
1.Single
2. Multicast.

  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.

Your Name Your Email-ID
Your Answer
 
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.
Your Name Your Email-ID
Your Answer