C Sharp Interview Questions
Questions Answers Views Company eMail

what is unit testing

2 3960

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 3370

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 2934

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

5 6315

what is namespace?

6 7115

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

4 6132

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

2 3514

what is CSharp

6 5710

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 6674

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 10048

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

Merrill Lynch, Patni,

2 4559

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 4160

what is the main differnce between const,readonly and static

Beehive Systems, CDAC,

3 7950

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

CGI, Polaris, SunGard,

3 33638

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

Siemens, Syntel,

2 10823


Post New C Sharp Questions

Un-Answered Questions { C Sharp }

Define satellite assembly in c#?

478


What is data hiding in c#?

494


How to block a class from being inherited further?

479


Is string a data type in c#?

483


Can you access a hidden base class method in the derived class?

492






Is arraylist faster than linkedlist?

487


What is constructor overloading in c#?

486


What is session c#?

521


How do I trim a space in c#?

435


Why c# is called type safe language?

453


What is the use of protected in c#?

483


What is ienumerable and iqueryable?

498


What are access modifiers in c#?

541


Name which controls do not have events?

545


What is difference between singleordefault and firstordefault?

475