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

牛课网 考试宝典 更新时间:2024-05-20 13:49:01

微软认证题库 微软的认证考试 微软认证考试有哪些

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

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

You write the following code fragment.

You need to ensure that when you click the btnSubmit Button control, each Label control value is asynchronously updatable.

Which code segment should you use?

A.protected void btnSubmit_Click(object sender, EventArgs e) {

Label1.Text = "Label1 updated value";

Label2.Text = "Label2 updated value";

Label3.Text = "Label3 updated value";

}

B.protected void btnSubmit_Click(object sender, EventArgs e) {

Label1.Text = "Label1 updated value";

Label2.Text = "Label2 updated value";

ScriptManager1.RegisterDataItem(Label3, "Label3 updated value");

}

C.protected void btnSubmit_Click(object sender, EventArgs e) {

ScriptManager1.RegisterDataItem(Label1, "Label1 updated value");

ScriptManager1.RegisterDataItem(Label2, "Label2 updated value");

Label3.Text = "Label3 updated value";

}

D.protected void btnSubmit_Click(object sender, EventArgs e) {

Label1.Text = "Label1 updated value";

Label2.Text = "Label2 updated value";

ScriptManager1.RegisterAsyncPostBackControl(Label3); Label3.Text = "Label3 updated value";

}

答案: B

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

You add a Web form that contains the following code fragment.

You write the following code segment for the GetData method of the DAL class. (Line numbers are included for reference only.)

01 public object GetData() {

02 SqlConnection cnn = new SqlConnection( )

03 string strQuery = "SELECT * FROM Products";

04

05 }

You need to ensure that the user can use the sorting functionality of the gvProducts GridView control.

Which code segment should you insert at line 04?

A.SqlCommand cmd = new SqlCommand(strQuery, cnn);

cnn.Open();

return cmd.ExecuteReader();

B.SqlCommand cmd = new SqlCommand(strQuery, cnn);

cnn.Open();

return cmd.ExecuteReader(CommandBehavior.KeyInfo);

C.SqlDataAdapter da = new SqlDataAdapter(strQuery, cnn);

DataSet ds = new DataSet();

da.Fill(ds);

return ds;

D.SqlDataAdapter da = new SqlDataAdapter(strQuery, cnn);

DataSet ds = new DataSet();

da.Fill(ds);

ds.ExtendedProperties.Add("Sortable", true);

return ds.Tables[0].Select();

答案: C

3.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application has an ASPX page named ErrorPage.aspx.

You plan to manage the unhandled application exceptions.

You need to perform the following tasks:

Display the ErrorPage.aspx page Write the exceptioninformation in the Event log file.

Which two actions should you perform? (Each correct answer presents part of the solution.

Choose two.)

A.Add the following code fragment to the Web.config file.

B.Add the following code fragment to the Web.config file.

C.Add the following code segment to the Global.asax file.

void Application_Error(object sender, EventArgs e)

{

Exception exc = Server.GetLastError();

//Write Exception details to event log

}

D.Add the following code segment to the ErrorPage.aspx file.

void Page_Error(object sender, EventArgs e)

{

Exception exc = Server.GetLastError();

//Write Exception details to event log

Server.ClearError();

}

答案: AC

编辑推荐:

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

2013年微软认证考试精选试题汇总三

考试宝典安装说明

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

电脑版

手机版

网页版

考试宝典咨询
服务热线

TEL:029-88699698