C Sharp Interview Questions
Questions Answers Views Company eMail

Does C# support multiple inheritance?

IBM, Visual Soft,

3 5395

When you inherit a protected class-level variable, who is it available to?

Visual Soft,

2 3023

Are private class-level variables inherited?

HCL, Visual Soft,

4 10066




Describe the accessibility modifier protected internal.

Visual Soft,

2 4531

C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?

Visual Soft,

3 4978

What?s the top .NET class that everything is derived from?

Visual Soft, Hindawi,

4 8268

How?s method overriding different from overloading?

Visual Soft,

2 4578

What does the keyword virtual mean in the method definition?

Satyam, Visual Soft, Ipog Software,

3 7955




Can you declare the override method static while the original method is non-static?

Mind Tree,

2 6504

Can you override private virtual methods?

IBM, Mind Tree, AROBS Transilvania Software, Revalsys,

10 15022

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

Mind Tree,

2 6974

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

Mind Tree,

2 5894

What?s an abstract clas?

Mind Tree,

5 5911

When do you absolutely have to declare a class as abstract (as opposed to free-willed educated choice or decision based on UML diagram)?

Mind Tree,

2 8708

What?s an interface class?

Mind Tree,

5 5331


Post New C Sharp Questions






Un-Answered Questions { C Sharp }

1. Describe page life cycle?

760


What exactly happens when we debug and build the program?

1269


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

724


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

1854


hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......

581


i want o/p 011242110 in c# code.

746


Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!

13280


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.

679


update data in an xml file which resides in solution itself, using silverlight 4.0

576


3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close

697


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.

1030


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.

1711


2. What happened when BO object has been called?

699


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.

514


how can one use hcl and c sharp together?

747