(線程靜態成員的作用是什么)
2. Does C# support multiple inheritance?
(C#支持多重繼承嗎)
3. C# provides, by default a parameterless constructor. If I write a constructor that takes a string as a parameter, but want to keep the parameterless constructor. How many constructors should I write?
(C#提供默認構造函數(不帶參數),如果我寫了一個帶有一個string類型參數的構造函數,但是又想保留不帶參數的構造函數,那么我需要寫多少個構造函數)
4. What’s the difference between an interface and abstract class?
(接口與抽象類有什么區別)
5. What’s the difference between deep copy and shallow copy?
(深拷貝與淺拷貝有什么區別)
6. If an exception is thrown inside a catch block, will the finally block be still be called?
(如果catch塊捕獲了一個異常,那么finally塊還會被調用嗎)
7. a)Can a struct inherit from another struct?
(結構體能繼承結構體嗎)
b)Can a struct inherit from another class?
(結構體能繼承類嗎)
c)Can a struct be the base of another class?
(結構體可以作為一個類的基類嗎)
d)Can a struct implement an interface?
(結構體可以實現一個接口嗎)
e)What’s the difference between struct and class?
(結構體與類有什么區別)
8.What’s the difference between Debug and Trace class?
(Debug類與Trace類有什么區別)
9. What’s the final result?
(下面這段代碼的最終運行結果是什么)
double expectedValue = 1/2;
if(expectedValue > 0)
{
expectedValue = expectedValue + 0.5;
}
Console.WriteLine(expectedValue);
10. What is the role of the DataReader class in ADO.NET connections?
(DataReader在ADO.NET連接中起到什么樣的角色)