版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、微软认证考试试题库及答案1.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.You create a Web form in the application by using the following code fragment. (Line numbers are included for reference only.)01070809 runat="server" />101112 UpdateMode="Cond
2、itional" runat="server">13141516 Text="Submit" OnClick="Button_Handler" />171819You plan to create a client-side script code by using ASP.NET AJAX.You need to ensure that while a request is being processed, any subsequent Click events on the btnSubmit Button
3、control are suppressed.Which code fragment should you insert at line 10?A.B.C.D.Answer: C2.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
4、(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 MessageRes
5、ources.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 messag
6、es 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
7、", "Messages")C.assembly: ScriptResource ("Calculator.Resources.CalculatorScript.js", "Calculator.Resources.MessageResources", "Messages")D.assembly: ScriptResource ("Calculator.Resources.CalculatorScript", "Calculator.Resources.MessageReso
8、urces.resx", "Messages")Answer: C3.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.You create an AJAX-enabled Web form by using the following code fragment.When the updFirstPanel UpdatePanel control is updated, a dynamic client script is re
9、gistered.You write the following code segment in the code-behind file of the Web form. (Line numbers are included for reference only.)01 protected void Page_Load(object sender, EventArgs e)02 03 if(IsPostBack)04 05 string generatedScript = ScriptGenerator.GenerateScript();0607 08 You need to ensure
10、that the client-script code is registered only when an asynchronous postback is issued on the updFirstPanel UpdatePanel control.Which code segment should you insert at line 06?A.ClientScript.RegisterClientScriptBlock(typeof(TextBox), "txtInfo_Script", generatedScript);B.ScriptManager.Regis
11、terClientScriptBlock(this, typeof(Page), "txtInfo_Script", generatedScript, false);C.ClientScript.RegisterClientScriptBlock(typeof(Page), "txtInfo_Script", generatedScript);D.ScriptManager.RegisterClientScriptBlock(txtInfo, typeof(TextBox), "txtInfo_Script", generatedSc
12、ript, false);Answer: D4.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.The application contains the following code segment.public class CapabilityEvaluator public static bool ChkScreenSize( System.Web.Mobile.MobileCapabilities cap, String arg) int screen
13、Size = cap.ScreenCharactersWidth * cap.ScreenCharactersHeight;return screenSize < int.Parse(arg);You add the following device filter element to the Web.config file.You need to write a code segment to verify whether the size of the device display is less than 80 characters.Which code segment shoul
14、d you use?A.MobileCapabilities currentMobile; currentMobile = Request.Browser as MobileCapabilities;if(currentMobile.HasCapability("FltrScreenSize","80") B.MobileCapabilities currentMobile; currentMobile = Request.Browser as MobileCapabilities;if(currentMobile.HasCapability( &quo
15、t;FltrScreenSize","").ToString()="80") C.MobileCapabilities currentMobile; currentMobile = Request.Browser as MobileCapabilities;if (currentMobile.HasCapability( "CapabilityEvaluator.ChkScreenSize", "80") D.MobileCapabilities currentMobile; currentMobile
16、= Request.Browser as MobileCapabilities;if (currentMobile.HasCapability( "CapabilityEvaluator.ChkScreenSize", "").ToString()="80") Answer: A5.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application has a mobile Web f
17、orm 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_ItemComm
18、and( 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) ObjectListComm
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 拆船业的可持续发展战略规划考核试卷
- 制鞋业市场产品差异化考核试卷
- 木材的电子与通讯应用考核试卷
- 福建省福州市福清市2024-2025学年六年级上学期期中英语试卷
- 企业知识产权培训方案
- 化学纤维在水利工程领域的应用考核试卷
- 煤矿安全管理与风险预控考核试卷
- 低温低价设备制造技术在铁合金冶炼中的应用考核试卷
- 城市交通管理的案例分析考核试卷
- 2025年中考语文备考之名著复习:《艾青诗选》题集组(答案)
- 《饭店服务心理学》课程教案
- 政务短视频运营方案书
- 电厂消防安全知识讲座
- 陕西2016-2020五年中考英语分题型考点统计
- 护士团队的协作和领导力培养培训课件
- 国有资产委托经营管理协议
- 双方合作责任协议
- 2024年陕煤集团招聘笔试参考题库含答案解析
- 冬季防溺水安全课件
- vsd负压吸引术护理查房
- 传统节气《冬至》课件
评论
0/150
提交评论