微软认证考试资料.doc
《微软认证考试资料.doc》由会员分享,可在线阅读,更多相关《微软认证考试资料.doc(105页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、|1、 question 1You 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.你正在
2、开发一个.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 t
3、hat optimizes(优化) memory use and has good performance.请你选择一个数据结构,以便优化内存使用,具有良好的性能。What should you do?该如何做?A、 The System.Collections.Generic.SortedList class should be usedB、 The System.Collections.HashTable class should be usedC、 The System.Collections.Generic.SortedDictionary class should be usedD、
4、 The System.Collections.SortedList class should be used点评:SortedList 表示键/值对的集合,这些键值对按键排序并可按照键和索引访问。HashTable 表示键/值对的集合,这些键值对根据键的哈希代码进行组织。C 该类不存在D 非类型安全的,没有引人泛型。2、 Question 2You work as an application developer at Cer-T. You have recently created an application that include the code shown below.你在 Ce
5、r-T 做应用程序开发人员。最近你创建了一个应用程序,包含如下的代码:public delegate string GetFileContentsDel();public string GetFileContens()/Process file and return resultsYou now need to invoke the GetFileContents method asynchronously(异步).You have to ensure that the code you use to invoke the GetFileContents method will continu
6、e to process other user instructions,and displays the results as soon as the GetFileContents method finishes processing. What should you do?现在你需要异步调用 GetFileContents 方法。必须确保你的代码在调用 GetFileContents方法的同时将继续处理其他用户的指令,并在 GetFileContents 方法完成处理后显示结|果。你应该怎么做?A、 Use the following code:/创建委托对象并且实例化GetFileCo
7、ntentsDel delAsync=new GetFileContentsDel(GetFileContents);IAsyncResult result=delAsync.BeginInvoke(null,null);while(!resul.IsCompleted)/Process other user instructionsstring strFile=delAsync.EndInvoke(result);B、 Use the following code:GetFileContentsDel delAsync=new GetFileContentsDel(GetFileConten
8、ts);string strFile=delAsync.Invoke(); /直接调用C、 Use the following code:string strFile=GetFileContents.Invoke();/语法错误D、 Use the following code:GetFileContentsDel delAsync=new GetFileContentsDel(GetFileContents);IAsyncResult result=delAsync.BeginInvoke(null,null);/Process other user instructionsstring s
9、trFile=delAsync.EndInvoke(result);点评:IAsyncResult 包含异步操作的方法的类实现。对于只有同步方法的对象,只需要定义一个委托,并使用其 BeginInvoke 和 EndInvoke 方法就可以了。B、直接调用C、语法错误D、与题意不符合,没有状态判断3、 Question 3You work as the application developer at Hi-T. You have created a new service application named App01.App01 must still be deployed into th
10、e Hi-T network. A Hi-T network administrator named Rosanne Keith has already created a user ccount for App01. You must configure App01 to run in the context of this new user account.What should you do next?你在 Hi-T 做应用程序开发人员。你已经创建了一个新的服务应用程序命名App01.该服务必须部署在 Hi-T 的网络中。Hi-T 的一个叫罗萨安娜基思的网络管理员已经创建了 App01
11、的用户帐号。在新的用户帐号下要运行 App01,你必须做一些相应的配置。下一步应该做什么?A、 Before Deploying App01,specify the startType property of the ServiceInstaller class.B、 Before delploying App01,specify the Account,Username,and Password properties of the ServiceProcessInstaller class.在部署 App01 之前,指定账户,用户名和密码的 ServiceProcessInstaller 类
12、的属性。C、 Install the service by using the CONFIG option of the net.exe command-line tool.D、 Install the service by using the installutil.exe command-line tool.点评:4、 Question 4|You pass a value-type variable into a procedure as an argument.The procedure changes the variable;however,when the procedure r
13、eturns,the variable has not changed.What happened?(Choose one.)你在一个方法中传入了一个值类型的变量做参数。方法里改变了这个变量;而当方法返回时,变量的值并没有被改变。这是为什么?(选择一项)A、 The variable was not initialized before it was passed in.该变量在传入的时候没有被初始化B、 Passing a value type into a procedure creates a copy of the data.向方法里传入值类型的变量,实际上是传入了一个数据的副本。C、
14、 The variable was redeclared within the procedure level.在方法体中重新申明了这个变量。D、 The procedure handled the variable as a reference.方法按引用处理了该变量点评:考察了数据传参的方式:按值传参和按引用传参。5、 Question 5You work as the application developer at Hi-T. You are working on a new application named App01. App01 is configured to perform
15、 a series of mathematical calculations.你在 Hi- 做应用程序开发人员。正在开发一款新的应用程序,名字叫App01;App01 配置为执行一系列的数学计算。You create a class named AppClass and create a procedure named AppSP. AppSP must execute on an instance of the class.你创建了一个 AppClass 的类和一个 AppSP 的方法。该方法必须作为该类的实例运行。You must configure the applications us
16、er interface(UI) so that it continues to respond for the duration that calculations are performed.You must write the code segment for calling the AppSP procedure which will accomplish your objective.Choose the code segment which you should use.你必须配置应用程序的用户界面,以便它在进行计算期间能够继续做出响应。你必须编写用于调用 AppSP 程序的代码,
17、以实现上述目标。选择下面的那段代码可以使用。A、 private void AppSP().private void DoWork()AppClass myValues=new AppClass();Thread newThread=new Thread(new ThreadStart(AppSP);newThread.Start(myValues);B、 private void AppSP()private void DoWork()AppClass myValues=new AppClass();ThreadStart delStart=new ThreadStart(AppSP);Th
18、read newThread=new Thread(delStart);if(newThread.IsAlive)new Thread.Start(myValues);|C、 private void AppSP(AppClass values).private void DoWork()AppClass myValues=new AppClass();Application.DoEvents();AppSP(myValues);Application.DoEvents();D、 private void AppSP(object values).private void DoWork()Ap
19、pClass myValues=new AppClass();Thread newThread=new Thread(new ParameterizedThreadStart(AppSP);点评:引入线程ThreadStart 该委托不能带参数ParameterizedThreadStart 该委托可以带参数6、 question 6You work as the application developer at Cer-T. Cer-T uses Visual Studio.Net2005 as its application development platform. 你在 Cer-T 做
20、应用程序开发人员。Cer-T 用 VS2005 作为其开发平台。You are developing a .NET Framework 2.0 financial application and are busy developing a module that backs up the critical data on a separate hard drive. 你正在开发一款.net2.0 的财务应用程序,并忙于开发一个模块,备份关键数据到一个独立的硬盘驱动器(硬盘)You are required to decide which properties of the DriveInfo
21、class to use and find the type of file system like FAT or NTFS and the drive free space and the user disk quota(配额/ 指标) should be ignored by the application.你必须决定 DriverInfo 类使用的参数,找到像 FAT 或者 NTFS 类型的文件系统和磁盘的可以空间,并使应用程序忽略用户磁盘的配额。What should you do?该如何做?A、 Use the DriveFormat and TotalFreeSpace prope
22、rties of the DriveInfo class.B、 Use the DriveType and AvailableFreeSpace properties of the DriveInfo class.C、 Use the VolumeLabel and TotalSize properties of the DriveInfo classD、 Use the DriveType and TotalSize properties of the DriveInfo class.E、 Use the DriveFormat and AvailableFreeSpace properti
23、es of the DriveInfo class.点评:DriverInfo 类的常用属性和方法没有找到指定的属性7、 Question 7You are writing a method for a console application that lists options available to a user based on his group memberships.Which technique should you use?你正在为一个控制台应用程序写一个方法,给一个基于组成员的用户列出可用的选项。|下面哪项技术可以?A、 WindowsPrincipal.IsInRoleB
24、、 WindowsIdentity.IsInRoleC、 Imperative(迫切的) RBS demands(需求)D、 Declarative(声明) RBS demands点评:WindowsPrincipal 允许代码检查 Windows 用户的 Windows 组成员身份WindowsIdentity 表示 Windows 用户8、 Question 8You are as the application developer at Hi-T. You are working on an application named App01. App01 must be configure
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 微软 认证 考试 资料
限制150内