C Sharp Interview Questions
Questions Answers Views Company eMail

what is unit testing

2 2590

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 2149

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 2037

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

5 4391

what is namespace?

6 4552

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

4 4273

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 2431

what is CSharp

6 3483

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 4484

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 8304

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

Merrill Lynch, Patni,

2 3183

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 3253

what is the main differnce between const,readonly and static

CDAC, Beehive Systems,

3 6253

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

CGI, Polaris, SunGard,

3 31772

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

Siemens, Syntel,

2 9200

Post New C Sharp Questions

Un-Answered Questions { C Sharp }

What exactly happens when we debug and build the program?


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


how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?


1. Describe page life cycle?


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; } }


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


what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?


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


windows c# using datagridview in edit form sql server


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


i want the csharp questions&answeres


What exactly happens when we debug and build the program?


explain the nature of the assembly work?


how to create crystal reports give one detail example(i want to view age category report) please give suitable example in my small knowledge