2013年微软认证考试精选试题9

牛课网 考试宝典 更新时间:2013-09-03 14:57:42

2013年微软认证考试精选试题9

我们考吧网为了帮助考生朋友们加强基础知识的巩固,加强练习试题的训练,有效的提高学习效率,我们考吧网整理了一些关于微软认证模拟试题,希望对本次的考试有所帮助,汇编的模拟试题如下:同时也希望你本次顺利通关。想了解更多职称计算机咨询,就请继续关注我们考吧网。

1你需要创建一个清除队列(Queue )q 的方法。你应该使用下面那段代码?

A. foreach (object e in q) {q.Dequeue();}

B. foreach (object e in q) {Enqueue(null);}

C. q.Clear();

D. q.Dequeue();

答案: C

2请使用下面的条件确定一个类型:

1) 是一个数字。

2) 不大于 65,535

请问,是哪一个类型?

A. System.UInt16

B. int

C. System.String

D. System.IntPtr

答案: A

3你需要写一个完成如下任务的代码段:

1) 查找所有暂停的服务

2) 把服务的显示名称增加到集合中

请问,你应该使用那个代码段?

A. Dim searcher As ManagementObjectSearcher = _New ManagementObjectSearcher( _

"Select * from Win32_Service where State = ’Paused’")

For Each svc As

ManagementObject In searcher.Get()

Collection1.Add(svc("DisplayName"))

Next

B. Dim searcher As ManagementObjectSearcher = _New ManagementObjectSearcher ( _

"Select * from Win32_Service", "State = ’Paused’")

For Each svc As ManagementObject In searcher.Get()

Collection1.Add(svc("DisplayName"))

Next

C. Dim searcher As ManagementObjectSearcher = _ New ManagementObjectSearcher( _

"Select * from Win32_Service")

For Each svc As ManagementObject In searcher.Get()

If svc("State").ToString() = "’Paused’" Then

Collection1.Add(svc("DisplayName"))

End If

Next

D. Dim searcher As New ManagementObjectSearcher()searcher.Scope = New

ManagementScope("Win32_Service")

For Each svc As ManagementObject In searcher.Get()

If svc("State").ToString() = "Paused" Then

Collection1.Add(svc("DisplayName"))

End If

Next

答案: A

4.你需要创建一个能够和 COM 进行互操作的类。为此,你需要保证 COM 应用能够创建这个类的实例并且能够调用 GetAddress 方法。你应该使用那个代码段定义你的类?

A. public class Customer {

string addressString;

public Customer(string address) { addressString = address; }

public string GetAddress() { return addressString; }}

B. public class Customer {

static string addressString;

public Customer() { }

public static string GetAddress() { return addressString; }}

C. public class Customer {

string addressString;

public Customer() { }

public string GetAddress() { return addressString; }}

D. public class Customer {

string addressString;

public Customer() { }

internal string GetAddress() { return addressString; }}

答案: C

编辑推荐:

2013年微软认证考前模拟精选试题汇总一

2013年微软认证考前模拟精选试题汇总二

上一篇:2013年微软认证考试精选试题8

考试宝典安装说明

宝典适用于手机、电脑、平板,您可安装客户端或在浏览器使用。

电脑版

手机版

网页版

考试宝典咨询
服务热线

TEL:029-88699698