我的位置: 首頁 > 學習專區 > .NET技術 > 雙語面試題(.NET的)

雙語面試題(.NET的)

2012-10-25 13:58:00
來源:
[導讀] 1. What does the ThreadStatic attribute do?(線程靜態成員的作用是什么)2. Does C# support multiple inheritance?(C#支持多...
1. What does the ThreadStatic attribute do?

(線程靜態成員的作用是什么)

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連接中起到什么樣的角色)

評論
熱點專題
>>
相關文章推薦
>>
好吊妞免费视频在线观看,久久亚洲国产人成综合网,久久精品国产2020,欧美精品综合在线
亚洲国产精品欧美日韩一区二区 | 在线看不卡日韩AV | 亚州成a人在线观看日本 | 亚洲成aV人片在线播放一二区 | 偷自视频区在线 | 亚洲欧美国产精品有字幕 |