2013年微软认证:微软认证70-562考试精选模拟试题(1)

牛课网 考试宝典 更新时间:2024-05-18 10:40:50

微软认证难考吗 微软认证考试是什么 微软的认证考试

在复习微软的过程中中还是不够全面,为了帮助广大考生系统全面的复习好《微软认证学科》,我们考吧网整理了微软认证模拟试题,本次汇编的模拟试题希望对你的考试有所帮助,预祝你考试顺利。

编辑推荐:2013年微软认证:微软认证考试必备经典试题汇总三

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

You write the following code segment to create a JavaScript file named CalculatorScript.js.

function divide(a, b) {

if (b == 0) {

var errorMsg = Messages.DivideByZero;

alert(errorMsg); return null;

}

return a/b;

}

You embed the CalculatorScript.js file as a resource in a Class Library project.

The namespace for this project is Calculator.Resources.

The JavaScript function retrieves messages from a resource file named MessageResources.resx by using the JavaScript Messages object.

You add an AJAX Web form in the ASP.NET application. You reference the Class Library in the application.

You add an ASP.NET AJAX ScriptReference element to the AJAX Web form.

You need to ensure that the JavaScript function can access the error messages that are defined in the resource file.

Which code segment should you add in the AssemblyInfo.cs file?

A.[assembly: ScriptResource ("CalculatorScript", "MessageResources", "Messages")]

B.[assembly: ScriptResource ("CalculatorScript.js", "MessageResources.resx", "Messages")]

C.[assembly: ScriptResource ("Calculator.Resources.CalculatorScript.js", "Calculator.Resources.MessageResources", "Messages")]

D.[assembly: ScriptResource ("Calculator.Resources.CalculatorScript", "Calculator.Resources.MessageResources.resx", "Messages")]

Answer: C

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application has a mobile Web form that contains the following ObjectList control.

You create an event handler named ObjectListCtrl_ItemCommand.

You need to ensure that the ObjectListCtrl_ItemCommand handler detects the selection of the CmdDisplayDetails item.

Which code segment should you write?

A.

public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) {

if (e.CommandName == "CmdDisplayDetails") {

} }

B.

public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) {

if (e.CommandArgument.ToString() == "CmdDisplayDetails") {

} }

C.

public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) {

ObjectListCommand cmd = sender as ObjectListCommand;

if (cmd.Name == "CmdDisplayDetails") {

} }

D.

public void ObjectListCtrl_ItemCommand( object sender, ObjectListCommandEventArgs e) {

ObjectListCommand cmd = e.CommandSource as ObjectListCommand;

if (cmd.Name == "CmdDisplayDetails") {

} }

Answer: A

考试宝典安装说明

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

电脑版

手机版

网页版

考试宝典咨询
服务热线

TEL:029-88699698