c#.net面试题。等答案

vivi201000 2007-09-07 07:33:44
Part 1:C# Questions(3*10)
1) The C# keyword .int. maps to which .NET type?
(A).System.Int16
(B).System.Int32
(C).System.Int64
(D).System.Int128

2) Which of these string definitions will prevent escaping on backslashes in C#?
(A).string s = #.n Test string.;
(B).string s = ..n Test string.;
(C).string s = @.n Test string.;
(D).string s = .n Test string.;

3) Which of these statements correctly declares a two-dimensional array in C#?
(A).int[,] myArray;
(B).int[][] myArray;
(C).int[2] myArray;
(D).System.Array[2] myArray;

4) If a method is marked as protected internal who can access it?
(A).Classes that are both in the same assembly and derived from the declaring class.
(B).Only methods that are in the same class as the method in question.
(C).Internal methods can be only be called using reflection.
(D).Classes within the same assembly, and classes derived from the declaring class.

5) What is boxing?
(A). Encapsulating an object in a value type.
(B). Encapsulating a copy of an object in a value type.
(C). Encapsulating a value type in an object.
(D). Encapsulating a copy of a value type in an object.

6) What compiler switch creates an xml file from the xml comments in the files in an assembly?
(A)./text
(B)./doc
(C)./xml
(D)./help

7) What is a delegate?
(A).A strongly typed function pointer.
(B).A light weight thread or process that can call a single method.
(C).A reference to an object in a different process.
(D).An inter-process message channel.
8) How does assembly versioning in .NET prevent DLL Hell?
(A).The runtime checks to see that only one version of an assembly is on the machine at any one time.
(B)..NET allows assemblies to specify the name AND the version of any assemblies they need to run.
(C).The compiler offers compile time checking for backward compatibility.
(D).It doesn.t.

9) In the NUnit test framework, which attribute must adorn a test class in order for it to be picked up by the NUnit GUI?
(A).TestAttribute
(B).TestClassAttribute
(C).TestFixtureAttribute
(D).NUnitTestClassAttribute

10) Which of the following operations can you NOT perform on an ADO.NET DataSet?
(A).A DataSet can be synchronised with the database.
(B).A DataSet can be synchronised with a RecordSet.
(C).A DataSet can be converted to XML.
(D).You can infer the schema from a DataSet.


Part 2:ASP.NET Questions
1. When was ASP.NET released?



2. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.



 
3. What methods are fired during the page load?




 
4. What namespace does the Web page belong in the .NET Framework class hierarchy?


 
5. Where do you store the information about the user’s locale?


 
6. What’s a bubbled event?



 
7. Suppose you want a certain ASP.NET function executed on MouseOver for a certain button.  Where do you add an event handler?


   
8. Explain the differences between Server-side and Client-side code?


    
9. What is the difference between Server.Transfer and Response.Redirect?  Why would I choose one over the other?





   
10. What is the Global.asax used for?



 
11. What are the Application_Start and Session_Start subroutines used for?


12. Whats an assembly?



  
13. Explain what a diffgram is, and a good use for one?



 
14. Whats MSIL, and why should my developers need an appreciation of it if at all?




 
15. Which method do you invoke on the DataAdapter control to load your generated dataset with data?


 
16. What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control?


 
17. What base class do all Web Forms inherit from?


 
18. Name two properties common in every validation control?


 
19. Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?



   
20. How many classes can a single .NET DLL contain?

...全文
2035 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
goodhy 2007-09-24
  • 打赏
  • 举报
回复
这套题不错,值得收藏!
wzmchj 2007-09-10
  • 打赏
  • 举报
回复

大部分简答题答案可以在上面找到:
http://blogs.crsw.com/mark/articles/254.aspx
wyc_xiaoben 2007-09-10
  • 打赏
  • 举报
回复
:-)
chuxue1342 2007-09-10
  • 打赏
  • 举报
回复
1,英文感冒,
2,就算不感冒,用中文还是不一定能回答!
所以只能MARK,观望强人!!
wuhuiITren 2007-09-10
  • 打赏
  • 举报
回复
lihai
csShooter 2007-09-10
  • 打赏
  • 举报
回复
1B
2C\
3A
4D
5C
6C
7D
8B
9...
10 B
solemn1981 2007-09-10
  • 打赏
  • 举报
回复
lihai
gavinhuanghsc 2007-09-10
  • 打赏
  • 举报
回复
干脆让人家帮你面试
xray2005 2007-09-10
  • 打赏
  • 举报
回复
学习
wyc_xiaoben 2007-09-10
  • 打赏
  • 举报
回复
hoho
windstore 2007-09-08
  • 打赏
  • 举报
回复
1.When was ASP.NET released?
他啥时候发布的咱也不知道好像是2002年
2.Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.
inetinfo.exe IIS工作进程..IIS负责接受页面请求信息 负责映射扩展名为aspx.ashx.asmx等扩展名映射到aspnet_isapi.dll

aspnet_isapi.dll 内含http handler 和httpmodule 对页面进行处理

aspnet_wp.exe 是.net处理程序的工作进程

3. page_preinit page_init page_preload page_load page_PreRender page_render page_unload等
4.System.Web.UI.Page
5.cookie or database or session or viewstate
6.不知道
7.XX.Attributes.Add("onmouseover","xxx()")
8.服务器端负责接受客户端发送的请求,处理页面并返回到客户端
客户端负责发送页面信息和显示页

都是基本概念 太多了 。。剩下的自己去查资料吧
MADfox1983 2007-09-08
  • 打赏
  • 举报
回复
楼上的挺强。。。。
windstore 2007-09-08
  • 打赏
  • 举报
回复
1.B
2.C
3.A
two-dimensional 是二维数组的意思
B是jaggedArray 交错数组
4.D
如果一个类声明为
protected internal 的话,他的意思是它的继承类,或者同一个程序集的都可以访问。两者是或的关系 不是与的关系
5.D
6.不知道
7.A
8.B
9.D
10.B
MADfox1983 2007-09-08
  • 打赏
  • 举报
回复
好多不太懂。。。。。郁闷
NickWar 2007-09-07
  • 打赏
  • 举报
回复
1 B
2 C
3 B
4 A
5 D
6 B
7 A
8 B
9 D
10 B

以上仅供参考
firein 2007-09-07
  • 打赏
  • 举报
回复
1:Int32

110,535

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧