版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 国内外医疗不良事件典型案例对比分析
- 2026届贵州省重点中学生物高三上期末调研试题含解析
- 围术期备皮时机与方法对SSI的影响
- 甘肃省天水市甘谷县第一中学2026届生物高一第一学期期末经典试题含解析
- 团队技术绩效分配协作模式
- 哮喘合并过敏性鼻炎的综合管理路径
- 同质化慢性病管理技能培训体系构建
- 重庆市云阳县等2026届高三数学第一学期期末联考模拟试题含解析
- 合并外周血管病的STEMI再灌注通路选择
- 厂商视角下的医疗设备绿色设计实践
- GB/T 4074.6-2024绕组线试验方法第6部分:热性能
- DB32-T 4111-2021 预应力混凝土实心方桩基础技术规程
- 医疗卫生机构6S常态化管理打分表
- 几种常用潜流人工湿地剖面图
- 危险源辨识、风险评价、风险控制措施清单-05变电站工程5
- 2023年副主任医师(副高)-推拿学(副高)考试历年真题摘选带答案
- 朱子治家格言(朱子家训)课件
- 20S517 排水管道出水口
- vpap iv st说明总体操作界面
- 初中一年级(7年级)上学期生物部分单元知识点
- 长兴中学提前招生试卷
评论
0/150
提交评论