北京天圆南京办事处C#面试部分题目C# Interview Questions

2.Who is a protected class-level variable availabe to?

It is availabe to any sub-class(a class inheriting this class)?

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

?

C# Interview Questions
This is a list of questions I have gathered from other sources and created myself over a period of time from my experience,many of which I felt where incomplete of simple wrong. I have finally taken the time to go through each question and correct them to the best of my ability.However,please feel free to post feedback to challenge,improve,or suggest new questions.I want to thank those of you that have contributed quality questions and corrections thus far.
?
There are some questions in this list that I do not consider to be good questions for an interview.However,they do exist on other lists available on the Internet so I felt complelled to keep them easy access.
?
?
General Questions
1.Does C# support multiple-inheritance?
No.
?
2.Who is a protected class-level variable availabe to?
It is availabe to any sub-class(a class inheriting this class)
?
3.Are private class-level variable inherited?
Yes,but they are no accessiable.Although they are not visible or accessible via the class interface,they are inherited.
?
4.Describe the accessibility modifier "protected internal"
It is availble to classes that are within the same assembly and derived from the specified base class.
?
5.What's the top.NET class that everything is derived from?
System.Object.
?
6.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.
?
7.What's the difference between System.String and System.Text.StringBuilder classes?
System.String is a immutable. Sytem.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.
?
8.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.
?
9.Can you store multiple date types in System.Array?
No.
?
10.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 Copy To() method copies the elements in to another existing array.Both perform a shallow copy. A shallow copy means the contents(each arry element) contains references to the same object as the elements int original array. A deep copy (which neither of these mothods performs) would create a new instance of each element's object,resulting in a different,yet identacle object.
?
?
Is's morning now.I had go to bed.Tomorrow will go on