C Sharp Interview Questions
Questions Answers Views Company eMail

What is the use of the static constructor? When static constructor gets compiled?

Syntel,

1 3838

One start and stop button is there and one textbox is there.when you click start button ,it will display 1,2,3......up to infinite in textbox.when you click stop button it will stop.

1 1683

what is the diference between casting and converting?

2 3236




how to handle errors in sqlserver

1 2370

What is the difference between TypeOf and GetType?

Syntel,

3 5721

Why do we use Design Pattern?

Impetus,

1 5424

What is the differnce between Array and Hash Table?

Impetus, TCS,

3 5651

If I have code like try { return; } catch { return; } finally { return; } from which block will the value will be returned. and try has been executed without any error.

Cap Gemini,

6 6061




Advantages of c# over vb.net?

HCL, Syntel,

3 5156

To compute the monthly, half-yearly and annual sales made by all the salesmen of a company.

Philips,

1 2314

Using system; class main { public static void Main() { int a = 1; for (int i = 0; i < 10; i++) { int j = a * 5; Console.WriteLine(a + "*5=" + j); a++; } Console.ReadLine(); } }

1 1873

how can your software identify which version of dot net framework install in client pc and install framework accordingly

pspl,

2 3383

In c#.Net Application For DataGridview binding which method is faster in below two case?Why..? 1)looping-Using For loop 2)Databinding direct using Dataset

CTS,

4 5040

How will U encapsulate button trigger event into text_box event of Pressing Enter key?

TCS,

3 3270

How will U encapsulate button trigger event into text_box event of Pressing Enter key?i.e only after pressing Enter after the text is typed the button trigger event should activate?

TCS,

6 4440


Post New C Sharp Questions






Un-Answered Questions { C Sharp }

Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.

1303


What exactly happens when we debug and build the program?

1516


update data in an xml file which resides in solution itself, using silverlight 4.0

756


How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!

1027


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

882






code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.

1120


What framework is used for performance testing/load testing?

865


write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5

1239


In gridview in editmode if we want to display information in one combobox based on

1071


how to print invert pyramid in c#

500


why delegate is type safe?

1958


i want o/p 011242110 in c# code.

950


what is .NET framework architecture ??

888


how can one use hcl and c sharp together?

940


windows c# using datagridview in edit form sql server

2927