C Sharp Interview Questions
Questions Answers Views Company eMail

what is unit testing

2 2464

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 2034

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 1904




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

5 4237

what is namespace?

6 4384

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

4 4090

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 2336

what is CSharp

6 3302




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 4240

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 8169

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

Patni, Merrill Lynch,

2 3038

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 3139

what is the main differnce between const,readonly and static

CDAC, Beehive Systems,

3 6010

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

CGI, Polaris, SunGard,

3 31508

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

Siemens, Syntel,

2 8953


Post New C Sharp Questions






Un-Answered Questions { C Sharp }

In a C# class we have a SortedList member m_addinProjects we want to provide an iterator to allow the consumer of this class access to the items in the collection. Please provide an iterator method for the AnalyzeAddinsDLL class below and an example of how it would be used. namespace AnalyzeAddinsDLL { public class AllAddInProjects { private SortedList m_addinProjects; public AllAddInProjects() { m_addinProjects = new SortedList(); } } }

1124


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

939


why delegate is type safe?

1867


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

981


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

765






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

1213


i want o/p 011242110 in c# code.

867


1. Describe page life cycle?

863


What exactly happens when we debug and build the program?

1307


What issues can be faced while delivering code?

776


Helo , Help Me , Help Me About : C# Windows Application - Network How To Manage IP Client's Accessiblity To The Internet Share concise Substitute , Minor ISA Server

695


There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?

914


Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.

774


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

824


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

1017