微软认证考试资料.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
微软认证考试资料

` `` question 1 You work as the application developer at Cer-T. Cer-T uses Visual Studio.Net 2005 as its application development platform. 你在Cer-T做应用程序开发人员,Cer-T使用VS2005作为其应用程序的开发平台。 You are developing a .Net Framework 2.0 application used to store a type-safe list of names and e-mail addresses. 你正在开发一个.Net Framework 2.0应用程序,用来存储一个包含了姓名和电子邮件的类型安全的列表(清单)。 The list will be populated all at once from the sorted data which means you well not always need to perform insertion or deletion operations on thd data. 这个列表会被完全的填充从排序的数据,这就意味着你不需要经常对这些数据完成插入或删除操作。 You are required to choose a data structure that optimizes(优化) memory use and has good performance. 请你选择一个数据结构,以便优化内存使用,具有良好的性能。 What should you do? 该如何做? The System.Collections.Generic.SortedList class should be used The System.Collections.HashTable class should be used The System.Collections.Generic.SortedDictionary class should be used The System.Collections.SortedList class should be used 点评: SortedList 表示键/值对的集合,这些键值对按键排序并可按照键和索引访问。 HashTable 表示键/值对的集合,这些键值对根据键的哈希代码进行组织。 C 该类不存在 D 非类型安全的,没有引人泛型。 Question 2 You work as an application developer at Cer-T. You have recently created an application that include the code shown below. 你在Cer-T做应用程序开发人员。最近你创建了一个应用程序,包含如下的代码: public delegate string GetFileContentsDel(); public string GetFileContens() { //Process file and return results } You now need to invoke the GetFileContents method asynchronously(异步).You have to ensure that the code you use to invoke the GetFileContents method will continue to process other user instructions,and displays the results as soon as the GetFileContents method finishes processing. What should you do? 现在你需要异步调用GetFileContents方法。必须确保你的代码在调用GetFileContents方法的同时将继续处理其他用户的指令,并在GetFileContents方法完成处理后显示结果。你应该怎么做? Use the following code: //创建委托对象并且实例化 GetFileContentsDel delAsync=new GetFileContentsDel(GetFileContents); IAsyncResult result=delAsync.BeginInvoke(null,null); while(!resul.IsCompleted) { //Process other user instructions } string strFile

文档评论(0)

明若晓溪 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档