How to prepare for c# and .NETinterviews?

Start from the beginning
                                        

Can we create an object of abstract class or an interface?

What is difference between abstract classes and interfaces?

An abstract with only abstract method, how is it different from interfaces?

If we want to update interface with new methods, what is the best practice?

What is a delegate?

How can we create a delegate?

What is a multicast delegate?

What are Events?

What is the difference between delegate and events?

Do events have return type?

Can events have access modifiers?

Can we have shared events?

What is shadowing?

What is the difference between Shadowing and Overriding?

If we inherit a class do the private variables also get inherited?

How can we stop the class from further inheriting?

What is the use of “Must inherit” keyword in VB.NET?

What are similarities between Class and structure?

What is the difference between Class and structure’s?

What does virtual keyword mean?

What are shared (VB.NET)/Static(C#) variables?

What is ENUM?

What is nested Classes?

If you create the child class object which constructor will fire first?

In what instances you will declare a constructor to be private?

Can we have different access modifiers on get/set methods of a property?

If we put goto / return statement in try / catch block will the finally code execute?

What is Indexer?

Can we have static indexer in C#?

Section 4:    ADO.NET

What are the different components in ADO.NET?

What is the namespace in which .NET has the data functionality class?

When should we use System.Data.SqlClient and System.Data.OleDB ?

What is difference between dataset and data reader?

What is the use of command objects?

What are Dataset objects?

What is the use of data adapter?

What are basic methods of Data adapter?

How can we fire a simple SQL Statement using ADO ?

How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?

How can we force the connection object to close after my data reader is closed?

I want to force the data reader to return only schema of the data store rather than data.

How can we fine-tune the command object when we are expecting a single row?

Which is the best place to store connection string in .NET projects?

How do you fill the dataset?

What are the various methods provided by the dataset object to generate XML?

How to prepare for c# and .NETinterviews?Where stories live. Discover now