微软认证:微软认证考试精选试题6

牛课网 考试宝典 更新时间:2024-05-24 19:36:21

微软认证考试是什么 微软认证考试条件 微软认证考试题库

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

1.你正在为应用装载一个新的程序集。你需要为程序集重载缺省的证据集(Evidence)。如果程序集是从本地的 intranet zone 被装载,你需要公共语言运行库(CLR)为程序集许可一个权限集。为此,你需要建立一个证据集。你应该使用下面哪一个代码段?

A. Evidence evidence = new Evidence(

Assembly.GetExecutingAssembly().Evidence

);

B. Evidence evidence = new Evidence();evidence.AddAssembly(new

Zone(SecurityZone.Intranet));

C. Evidence evidence = new Evidence();evidence.AddHost(new Zone(SecurityZone.Intranet));

D. Evidence evidence = new Evidence(

AppDomain.CurrentDomain.Evidence

);

答案: C

2.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

You create a Web page that contains the following two XML fragments. (Line numbers are included for reference only.)

01

02

03

04 05 DataSourceID="SqlDataSource1"

06

07 >

08

09

10 11 Text=’’ />

12

13

The SqlDataSource1 object retrieves the data from a Microsoft SQL Server 2005 database table. The database table has a column named LineTotal.

You need to ensure that when the size of the LineTotal column value is greater than seven characters, the column is displayed in red color.

What should you do?

.Insert the following code segment at line 06.

OnItemDataBound="FmtClr" Insert the following code segment at line 02.

protected void FmtClr (object sender, ListViewItemEventArgs e) {

Label LineTotal = (Label)

e.Item.FindControl("LineTotalLabel");

if ( LineTotal.Text.Length > 7)

{ LineTotal.ForeColor = Color.Red; }

else

{ LineTotal.ForeColor = Color.Black; }

}

B.Insert the following code segment at line 06.

OnItemDataBound="FmtClr" Insert the following code segment at line 02.

protected void FmtClr (object sender, ListViewItemEventArgs e) {

Label LineTotal = (Label)

e.Item.FindControl("LineTotal");

if ( LineTotal.Text.Length > 7)

{LineTotal.ForeColor = Color.Red; }

else

{LineTotal.ForeColor = Color.Black; }

}

C.Insert the following code segment at line 06.

OnDataBinding="FmtClr" Insert the following code segment at line 02.

protected void FmtClr(object sender, EventArgs e) {

Label LineTotal = new Label();

LineTotal.ID = "LineTotal";

if ( LineTotal.Text.Length > 7)

{LineTotal.ForeColor = Color.Red; }

else

{ LineTotal.ForeColor = Color.Black; }

}

D.Insert the following code segment at line 06.

OnDataBound="FmtClr" Insert the following code segment at line 02.

protected void FmtClr(object sender, EventArgs e) {

Label LineTotal = new Label();

LineTotal.ID = "LineTotalLabel";

if ( LineTotal.Text.Length > 7)

{LineTotal.ForeColor = Color.Red; }

else

{LineTotal.ForeColor = Color.Black; }

}

Answer: A

3.你正在定义一个名为 CompanyClass 的、包含几个子对象的类。CompanyClass 类包含一个操作子对象的方法 ProcessChildren 。 CompanyClass 对像将被序列化。你 需要确保在CompanyClass 对象和所有子对象被重新构造后 ProcessChildren 方法将被执行。你应该通过下面那两个操作达到这个目的?(每个答案代表解决方案的一部分)

A. 在ProcessChildren 方法上应用OnDeserializing 属性。

B. 让CompanyClass 实现IDeserializationCallback 接口。

C. 让CompanyClass 从ObjectManager类继承。

D. 在ProcessChildren 方法上应用OnSerialized属性。

E. 创建一个调用ProcessChildren的GetObjectData 方法。

F. 创建一个调用ProcessChildren的OnDeserialization 方法

4.你正在开发一个从应用目录动态的装入程序集的应用。你需要写一段代码去动态的装入Company1.dll 程序集到当前的应用执行域中。你应该使用下面那段代码?

A. AppDomain domain = AppDomain.CurrentDomain;string myPath =

Path.Combine(domain.BaseDirectory, "Company1.dll");

Assembly asm = Assembly.LoadFrom(myPath);

B. AppDomain domain = AppDomain.CurrentDomain;string myPath =

Path.Combine(domain.BaseDirectory,

"Company1.dll");Assembly asm = Assembly.Load(myPath);

C. AppDomain domain = AppDomain.CurrentDomain;string myPath =

Path.Combine(domain.DynamicDirectory, "Company1.dll");Assembly asm =

AppDomain.CurrentDomain.Load(myPath);

D. AppDomain domain = AppDomain.CurrentDomain;Assembly asm =

domain.GetData("Company1.dll");

答案: A

编辑推荐:

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

2013年微sql认证精选模拟试题汇总

考试宝典安装说明

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

电脑版

手机版

网页版

考试宝典咨询
服务热线

TEL:029-88699698