C Sharp Interview Questions
Questions Answers Views Company eMail

what is unit testing

2 2519

class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } what will happen & why?

2 2074

Method1() { int a=0, b=0, c=0; Monitor.Enter(this) c = 12; b = 3; a = c/b Moniter.Exit(this) } Method1() { int a=0, b=0, c=0; c = 12; b = 3; lock(this){ a = c/b } } Choose correct answer. a. Upon completion, Method1 and Method2 release the lock b. Upon Comletion, Method1 release the lcok and Method2 not. c. Upon Completion, Method2 release the lock and Method1 not. d. Upon Completion, neither Method1 or Method to release the lock.

1 1953




interface a { Method1() Method2() } class b: a { override Method1() override Method2() } what will happen & why?

5 4287

what is namespace?

6 4437

What are the different generaions of Garbage Collection and how do they work

4 4144

what is diffrence between protected ,internal and protected internal?? whether protected field available in derived class which is outside the assembly. if not ..this is possible by which access modifiers??

1 2368

what is CSharp

6 3371




Can we have private constructor in our class file. When we are trying to create instance for the class will it create or throw error regarding that?

5 4321

I have to create a windows application using C# .net to Modifiy the XML file. The application have to show the node and node value. plz help me.

Merrill Lynch,

3 8206

How can i load the text box and label at the runtime based on the existing text box and tabel

Patni, Merrill Lynch,

2 3081

i am using windows authentication for c#.net remoting with iis.I uncheck the anonymous access option in directory security.when my client requests the server it returns 401:unauthorized error.How can I resolve the exception ? Please send me the reply as early as possible.

1 3178

what is the main differnce between const,readonly and static

CDAC, Beehive Systems,

3 6079

what is the difference between arraylist and hash table using a simple program?

CGI, Polaris, SunGard,

3 31602

What is the difference between TypeOf, GetType and what are the uses of TypeOf, GetType.

Siemens, Syntel,

2 9032


Post New C Sharp Questions






Un-Answered Questions { C Sharp }

if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.

1196


i want the csharp questions&answeres

768


write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )

1242


how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com

848


i want o/p 011242110 in c# code.

894






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!!

967


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

806


windows c# using datagridview in edit form sql server

2868


4. Describe the process when we send a request URL? And who is responsible for that?

863


hi my question is about understanding a text the user entered to a site , so i want to analyse that text looking for some specific items such as "honda" "shoffere" etc.. so if this site could help or could tell me where to go with such question ,i wonder. thanks

790


what will be the output of the given below coding. using System; public class Exercise { static void OddNumbers(int a) { if (a >= 1) { Console.Write("{0}, ", a); a -= 2; OddNumbers(a); } } public static int Main() { const int Number = 9; Console.WriteLine("Odd Numbers"); OddNumbers(Number); Console.WriteLine(); return 0; } }

2048


What exactly happens when we debug and build the program?

1450


I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??

856


why delegate is type safe?

1900


1. Describe page life cycle?

891