微软认证考试资料

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1、question 1

You work as the application developer at . uses Visual 2005 as its application development platform.

你在做应用程序开发人员,使用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?

该如何做?

A、The System.Collections.Generic.SortedList class should be used

B、T he System.Collections.HashTable class should be used

C、T he System.Collections.Generic.SortedDictionary class should be used

D、The System.Collections.SortedList class should be used

点评:

SortedList 表示键/值对的集合,这些键值对按键排序并可按照键和索引访问。

HashTable 表示键/值对的集合,这些键值对根据键的哈希代码进行组织。

C 该类不存在

D 非类型安全的,没有引人泛型。

2、Question 2

You work as an application developer at . You have recently created an application that include the code shown below.

你在做应用程序开发人员。最近你创建了一个应用程序,包含如下的代码: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方法完成处理后显示结果。

你应该怎么做?

A、Use the following code:

//创建委托对象并且实例化

GetFileContentsDel delAsync=new GetFileContentsDel(GetFileContents);

IAsyncResult result=delAsync.BeginInvoke(null,null);

while(!resul.IsCompleted)

{

//Process other user instructions

}

string strFile=delAsync.EndInvoke(result);

B、U se the following code:

GetFileContentsDel delAsync=new GetFileContentsDel(GetFileContents);

string strFile=delAsync.Invoke(); //直接调用

C、U se 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 instructions

string strFile=delAsync.EndInvoke(result);

点评:IAsyncResult 包含异步操作的方法的类实现。对于只有同步方法的对象,只需要定义一个委托,并使用其BeginInvoke和EndInvoke方法就可以了。

B、直接调用

C、语法错误

D、与题意不符合,没有状态判断

3、Question 3

You work as the application developer at . You have created a new service application named App01.App01 must still be deployed into the network. A 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?

你在做应用程序开发人员。你已经创建了一个新的服务应用程序命名App01.

该服务必须部署在的网络中。的一个叫罗萨安娜基思的网络管理员已经创建了App01的用户帐号。在新的用户帐号下要运行App01,你必须做一些相应的配置。下一步应该做什么?

A、Before Deploying App01,specify the startType property of the ServiceInstaller class.

B、B efore delploying App01,specify the Account,Username,and Password properties of

the ServiceProcessInstaller class.

在部署App01之前,指定账户,用户名和密码的ServiceProcessInstaller类的属性。

C、I nstall 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 returns,the variable has not changed.What

相关文档
最新文档