版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 高中化学人教版 (2019)选择性必修2第一章 原子结构与性质第二节 原子结构与元素的性质第二课时教案设计
- 电子设备散热维护操作指南手册
- 2026三年级数学下册 综合练习二
- 小学主题班会课件:文明礼仪与社会和谐
- 《室内环境与设备(第2版)》-第三章
- 2026年医学检验士模拟试题含完整答案详解(各地真题)
- 2026年设计学试卷带答案详解(综合卷)
- 2026年公用设备工程师之专业知识(暖通空调专业)模考模拟试题含完整答案详解(网校专用)
- 2026年一级注册建筑师之建筑结构押题练习试卷含答案详解【预热题】
- 2026二年级数学下册 表内除法拓展题
- 2026年烟草浙江公司笔试试题(含答案)
- 2026春小学信息科技四年级下册浙教版(新教材)教案(全册)
- 福建省初中信息技术中考试卷含答案-5篇
- 药品的收货与验收培训课件
- 肛瘘挂线技术
- kelvin公式课件教学课件
- 2025年中国宠物行业白皮书-派读宠物行业大数据
- GB/T 3098.2-2025紧固件机械性能第2部分:螺母
- 2026年郑州工业安全职业学院单招职业技能测试必刷测试卷含答案
- 2025年河北省公务员考试面试真题细选及解析附答案
- 全国中小学生近视率情况统计分析表(2025版)
评论
0/150
提交评论