C Sharp Interview Questions
Questions Answers Views Company eMail

Can you prevent your class from being inherited and becoming a base class for some other classes?

3 5484

Can you allow class to be inherited, but prevent the method from being over-ridden?

5 7342

What?s an abstract class?

5 3526




What?s an interface class?

1 2603

Why can?t you specify the accessibility modifier for methods inside the interface?

5 10966

Can you inherit multiple interfaces?

3 3517

What?s the difference between an interface and abstract class?

Patni,

2 3694

How can you overload a method?

3 3974




If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?

1 3788

What?s the difference between System.String and System.StringBuilder classes?

5 13192

What?s the advantage of using System.Text.StringBuilder over System.String?

1 3593

Can you store multiple data types in System.Array?

5 4148

What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?

Wipro,

6 11561

How can you sort the elements of the array in descending order?

2 3633

What?s the .NET datatype that allows the retrieval of data by a unique key?

SmartData,

2 6891


Post New C Sharp Questions






Un-Answered Questions { C Sharp }

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

791


what is collections in .net? why we use?

966


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?

952


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

1254


Asha buys 16 Chocolates for rs 12 and 24 chocolates for rs 20, if she sold them 30 chocolates for rs 30 then what is the Gain/Loss percentage? Gain(700/19 %) Loss(700/19 %) Gain(500/19 %) Loss(500/19 %) If one person ate 100 grapes in 5 days and 6 more each day from starting, what was the no of grapes he ate on first day? 6 8 10 7 If seven men P, Q, R, S, T, U, V parked his car, P and Q something like that. 6 student J, K, L, M, N, O went for picnic in 2 batches, K and L have to go together, M and O do't go together, if O and L go in one batch then which of these combination will be wrong. Jmnp Jklo klop JKLO a boat can go upstream and down stream, if it goes 5/2 times of downstream at the speed of 6 kmph then what will be the speed of upstream? 15 KMPH 12 KMPH 10 KMPH 11 KMPH A, B, C, D, E sitting on a table, A sits 2 seat left from B and C sits 2 seat right from B then what will not be the combination ACDE

3037






i want the csharp questions&answeres

778


What exactly happens when we debug and build the program?

1465


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

2085


These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.

1860


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

879


how can one use hcl and c sharp together?

896


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

1065


What framework is used for performance testing/load testing?

822


2. What happened when BO object has been called?

822


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.

1215