电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

微软认证考试资料VIP免费

微软认证考试资料_第1页
1/104
微软认证考试资料_第2页
2/104
微软认证考试资料_第3页
3/104
1、question1YouworkastheapplicationdeveloperatCer-Tech.com.Cer-Tech.comusesVisualStudio.Net2005asitsapplicationdevelopmentplatform.你在Cer-Tech.com做应用程序开发人员,Cer-Tech.com使用VS2005作为其应用程序的开发平台。Youaredevelopinga.NetFramework2.0applicationusedtostoreatype-safelistofnamesande-mailaddresses.你正在开发一个.NetFramework2.0应用程序,用来存储一个包含了姓名和电子邮件的类型安全的列表(清单)。Thelistwillbepopulatedallatoncefromthesorteddatawhichmeansyouwellnotalwaysneedtoperforminsertionordeletionoperationsonthddata.这个列表会被完全的填充从排序的数据,这就意味着你不需要经常对这些数据完成插入或删除操作。Youarerequiredtochooseadatastructurethatoptimizes(优化)memoryuseandhasgoodperformance.请你选择一个数据结构,以便优化内存使用,具有良好的性能。Whatshouldyoudo?该如何做?A、TheSystem.Collections.Generic.SortedListclassshouldbeusedB、TheSystem.Collections.HashTableclassshouldbeusedC、TheSystem.Collections.Generic.SortedDictionaryclassshouldbeusedD、TheSystem.Collections.SortedListclassshouldbeused点评:SortedList表示键/值对的集合,这些键值对按键排序并可按照键和索引访问。HashTable表示键/值对的集合,这些键值对根据键的哈希代码进行组织。C该类不存在D非类型安全的,没有引人泛型。2、Question2YouworkasanapplicationdeveloperatCer-Tech.com.Youhaverecentlycreatedanapplicationthatincludethecodeshownbelow.你在Cer-Tech.com做应用程序开发人员。最近你创建了一个应用程序,包含如下的代码:publicdelegatestringGetFileContentsDel();publicstringGetFileContens(){//Processfileandreturnresults}YounowneedtoinvoketheGetFileContentsmethodasynchronously(异步).YouhavetoensurethatthecodeyouusetoinvoketheGetFileContentsmethodwillcontinuetoprocessotheruserinstructions,anddisplaystheresultsassoonastheGetFileContentsmethodfinishesprocessing.Whatshouldyoudo?现在你需要异步调用GetFileContents方法。必须确保你的代码在调用GetFileContents方法的同时将继续处理其他用户的指令,并在GetFileContents方法完成处理后显示结果。你应该怎么做?A、Usethefollowingcode://创建委托对象并且实例化GetFileContentsDeldelAsync=newGetFileContentsDel(GetFileContents);IAsyncResultresult=delAsync.BeginInvoke(null,null);while(!resul.IsCompleted){//Processotheruserinstructions}stringstrFile=delAsync.EndInvoke(result);B、Usethefollowingcode:GetFileContentsDeldelAsync=newGetFileContentsDel(GetFileContents);stringstrFile=delAsync.Invoke();//直接调用C、Usethefollowingcode:stringstrFile=GetFileContents.Invoke();//语法错误D、Usethefollowingcode:GetFileContentsDeldelAsync=newGetFileContentsDel(GetFileContents);IAsyncResultresult=delAsync.BeginInvoke(null,null);//ProcessotheruserinstructionsstringstrFile=delAsync.EndInvoke(result);点评:IAsyncResult包含异步操作的方法的类实现。对于只有同步方法的对象,只需要定义一个委托,并使用其BeginInvoke和EndInvoke方法就可以了。B、直接调用C、语法错误D、与题意不符合,没有状态判断3、Question3YouworkastheapplicationdeveloperatHi-Tech.com.YouhavecreatedanewserviceapplicationnamedApp01.App01muststillbedeployedintotheHi-Tech.comnetwork.AHi-Tech.comnetworkadministratornamedRosanneKeithhasalreadycreatedauserccountforApp01.YoumustconfigureApp01toruninthecontextofthisnewuseraccount.Whatshouldyoudonext?你在Hi-Tech.com做应用程序开发人员。你已经创建了一个新的服务应用程序命名App01.该服务必须部署在Hi-Tech.com的网络中。Hi-Tech.com的一个叫罗萨安娜基思的网络管理员已经创建了App01的用户帐号。在新的用户帐号下要运行App01,你必须做...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

微软认证考试资料

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部