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

牛课网 考试宝典 更新时间:2024-05-20 09:43:33

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

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

You define the following class.

public class Product {

public decimal Price { get; set; }

}

Your application contains a Web form with a Label control named lblPrice.

You use a StringReader variable named xmlStream to access the following XML fragment.

35

You need to display the price of the product from the XML fragment in the lblPrice Label control.

Which code segment should you use?

A.DataTable dt = new DataTable(); dt.ExtendedProperties.Add("Type", "Product");

dt.ReadXml(xmlStream);

lblPrice.Text = dt.Rows[0]["Price"].ToString();

B.XmlReader xr = XmlReader.Create(xmlStream);

Product boughtProduct = xr.ReadContentAs(typeof(Product), null) as Product;

lblPrice.Text = boughtProduct.Price.ToString();

C.XmlSerializer xs = new XmlSerializer(typeof(Product));

Product boughtProduct = xs.Deserialize(xmlStream) as Product;

lblPrice.Text = boughtProduct.Price.ToString();

D.XmlDocument xDoc = new XmlDocument(); xDoc.Load(xmlStream);

Product boughtProduct = xDoc.OfType().First();

lblPrice.Text = boughtProduct.Price.ToString();

答案: C

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

The application contains two Web pages named OrderDetails.aspx and OrderError.htm.

If the application throws unhandled errors in the OrderDetails.aspx Web page, a stack trace is displayed to remote users.

You need to ensure that the OrderError.htm Web page is displayed for unhandled errors only in the OrderDetails.aspx Web page.

What should you do?

A.Set the Page attribute for the OrderDetails.aspx Web page in the following manner.

Add the following section to the Web.config file.

B.Set the Page attribute for the OrderDetails.aspx Web page in the following manner.

Add the following section to the Web.config file.

C.Set the Page attribute for the OrderDetails.aspx Web page in the following manner.

Add the following section to the Web.config file.

D.Set the Page attribute for the OrderDetails.aspx Web page in the following manner.

Add the following section to the Web.config file.

答案: C

3You 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 Button1 control, a selected list of items move from the ListBox1 control to the ListBox2 control.

Which code segment should you use?

A.foreach (ListItem li in ListBox1.Items) { if (li.Selected) { ListBox2.Items.Add(li); ListBox1.Items.Remove(li); }

}

B.foreach (ListItem li in ListBox1.Items) { if (li.Selected) { li.Selected = false; ListBox2.Items.Add(li); ListBox1.Items.Remove(li); }

}

C.foreach (ListItem li in ListBox1.Items) { if (li.Selected) { li.Selected = false; ListBox2.Items.Add(li); }

}

D.foreach (ListItem li in ListBox2.Items) { if (ListBox1.Items.Contains(li)) ListBox1.Items.Remove(li); }

E.foreach (ListItem li in ListBox1.Items) { if (li.Selected) { ListBox1.Items.Remove(li); }

}

F.foreach (ListItem li in ListBox1.Items) { if (ListBox2.Items.Contains(li)) ListBox1.Items.Remove(li); }

答案: CD

编辑推荐:

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

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

考试宝典安装说明

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

电脑版

手机版

网页版

考试宝典咨询
服务热线

TEL:029-88699698