الخميس، 25 ديسمبر 2008

OOP Interview Questions

Questions

What is class,object,interface,structure,enum?

What is value type and reference type?

What is inheritance and polymorphism?

What are properties and indexer?

How to make a property,indexer readonly?

What is overloading and overriding?

Difference between Interface,abstract class, sealed class, static class and partial class?

how to implement singelton in C# & its uses?

What is event & delegates and its difference?

What is difference between overriding and shadowing?

What are the access allowed for compilation units(namespace),class and structs and what are its default access?

What’s difference between Association, Aggregation and Inheritance relationships?

What are Generics?

What are iterators?

What are nullable types? Is Nullable I and int ?i are same.

How to assign default value to nullable types? Did nested nullable types are allowed

What is covariance and contravariance? Did Delegate and method overriding support these?

What is anonymous method?

Did a generic class can be inherited by a normal class?

Difference between dispose and destructor?

What are virtual methods? How are they used?

What is the use of base,new,virtual and override keywords?

What is the difference between const and readonly variables?

use of operator overloading of implicit & explicit operators?

Is there any way to access private memebers of an object from another object? (Yes)

What is the difference between string and StringBuilder?

what is the difference between int and Int32?

When static constructor is invoked?

When compiler adds a default constructor to a class?

what is the difference between passing a value object by reference and a reference object by value?

what is output parameter and parameter array?

How to handle exceptions?

How to throw an caught exception from cath block?

Did it possible to cast a generic type of derived class to generic type of base class?

Is Inheritance possible in Static class?

What is marker interface?

Is it possible to implement an interface to a structure? Is it possible to extend a struct? Is it possible to inherit a class to struct?

What is the use of "default" and "Using" keyword?

Difference between direct type casting and using "as" keyword?

Use of Checked and UnChecked operators?

What is short circuit logical evaluation?

 

0 التعليقات: