C Sharp Interview Questions
Questions Answers Views Company eMail

Does C# support multiple inheritance?

IBM, Visual Soft,

3 4932

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

Visual Soft,

2 2652

Are private class-level variables inherited?

HCL, Visual Soft,

4 9304

Describe the accessibility modifier protected internal.

Visual Soft,

2 4153

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 4313

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

Visual Soft, Hindawi,

4 7226

How?s method overriding different from overloading?

Visual Soft,

2 4277

What does the keyword virtual mean in the method definition?

Satyam, Visual Soft, Ipog Software,

3 7219

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

Mind Tree,

2 5755

Can you override private virtual methods?

IBM, Mind Tree, AROBS Transilvania Software, Revalsys,

10 13586

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

Mind Tree,

2 6446

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

Mind Tree,

2 5225

What?s an abstract clas?

Mind Tree,

5 5354

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 7743

What?s an interface class?

Mind Tree,

5 4817

Post New C Sharp Questions

Un-Answered Questions { C Sharp }

hi i m bhawna ,a student of mca want to know about what type of technical question has been asked in an interview of mnc's like HCL,TCS,WIPRO


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


1. Describe page life cycle?


what is .NET framework architecture ??


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


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


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?


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


how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com


how can one use hcl and c sharp together?


i want o/p 011242110 in c# code.


What exactly happens when we debug and build the program?


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


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