作业帮 > 微软认证(MCSE) > 教育资讯

2013微软认证考试练习题及答案(19)[1]

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 20:22:13 微软认证(MCSE)
2013微软认证考试练习题及答案(19)[1]
2013微软认证考试练习题及答案(19)[1]微软认证(MCSE)
【网络综合 - 微软认证(MCSE)试题】
无忧考网为大家收集整理了《2013微软认证考试练习题及答案(19)》供大家参考,希望对大家有所帮助!!!

QUESTION 11 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 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); }

Answer: CD QUESTION 12 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You write the following code fragment. 1 2 3 You also add a MultiView control named MultiView1 to the Web page. MultiView1 has three child View controls. You need to ensure that you can select the View controls by using the DropDownList1 DropDownList control. Which code segment should you use? A.int idx = D微软认证(MCSE)