- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
最近下载
- 专题04 阅读理解(含答案析)(中考英语考试题分项汇编(四川专用)).docx VIP
- 2025河北高速燕赵驿行集团有限公司社会招聘笔试参考题库附答案解析.docx VIP
- 雨课堂 科研伦理与学术规范-期末考试答案及各章节答案.docx VIP
- 2025河北高速燕赵驿行集团有限公司社会招聘笔试备考试题及答案解析.docx VIP
- 美的集团的ESG报告:2022ESG Report.pdf VIP
- 最简单的个人股权转让协议5篇.docx VIP
- 《全国医疗服务价格项目规范》(2021版).docx VIP
- 华南理工大学《信号与系统》历年多套期末考试试卷(含答案).pdf VIP
- 夏季防暑降温指南预防中暑健康教育讲座主题班会PPT课件.pptx VIP
- 2025年广东省春季高考英语语法填空专项复习试题三(含答案解析).pdf VIP
原创力文档


文档评论(0)