.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani


Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.


Post New Question Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
BiztalkPatten/PracticesIISWCFWPFWWF
NetworkingAptitudeOthers  All    
 

C# Interview Questions and Answers

What is the differences between dataset.clone and dataset.copy?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: C#     Points: 40

What is the differences between dataset.clone and dataset.copy?

What is an enum?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: C#     Points: 40

It is used to define constants.

What is the difference between convert.to.string and .to.string() method?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: C#     Points: 40

Convert function handles nulls while i.string() does not it will throw a null reference exception error.

What are the different types of literals in C#?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: C#     Points: 40

There are Five types of literals are
Boolean literals
Integer literals
Real literals
Character literals
String literals
Null literals

What is Group By Clause

Author: Ashutosh Jha          Posted Date: August 31, 2014    Category: C#     Points: 40

Group By clause is used to group the rows, depending upon one or more values so that the group function can be applied to each group. if the 'Where' clause exists in the select statement, then Group By clause always be followed to the 'Where' clause. If in the select statement, there are non-aggregate columns, then in the Group By clause we need to add all those columns except the aggregate columns.

How to Split the database string value in C#

Author: Ashutosh Jha          Posted Date: August 31, 2014    Category: C#     Points: 40

We can split the string like below-

static void Main()
{
string s = "Delhi is a state";
//
// Split string on spaces.
//
//
string[] words = s.Split(' ');
foreach (string word in words)
{
Console.WriteLine(word);
}
}

the output will be
delhi
is
a
state

What is the difference between Abstract and Interface.

Author: Ashutosh Jha          Posted Date: August 31, 2014    Category: C#     Points: 40

Interface is not a class. An interface can only contain the method definition without the body.

On the other-hand, an abstract class is a class that contains the method definition and may or may not contain the method body.
It acts as a base class can be inherited from other child class.

One class can inherit only one abstract class at a given time where is it can implement one or more interface.

What is an Object Pool in C#

Author: Ashutosh Jha          Posted Date: August 31, 2014    Category: C#     Points: 40

Object pool is a container of objects.The objects are stored in memory to be used later based on the request.When there
is a request for a new object,it will be served by allocating an object from the pool.If the object is not there a
new object will be created in the pool.

What is void in C#

Author: Ashutosh Jha          Posted Date: August 31, 2014    Category: C#     Points: 40

void is the return type which can be used with the class members like with the functions.
If the return type is void, the method won't return anything.

What are the different types of statements supported in C#

Author: Ashutosh Jha          Posted Date: May 23, 2014    Category: C#     Points: 40

C# supports several different kinds of statements -

Block statements
Declaration statements
Expression statements
Selection statements
Iteration statements
Jump statements
Try catch statements
Checked and unchecked
Lock statement
« Previous12345678910….4748Next »



Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend