版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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届高三第一次联考化学试题试卷含解析
- 吉林省百校联盟2026届高三下学期第二次阶段考试生物试题含解析
- 江苏省涟水郑梁梅高级中学2026年高三下学期第三次月考生物试题(理A)试题含解析
- 高铁霸座现象评述
- 北京师范大学附中2026年高三下学期第四次周练生物试题含解析
- 辽宁省庄河高级中学2025-2026学年高三第三次诊断性考试化学试题含解析
- 福建省福州教育学院附属第二中学2026年全国新高三开学联考化学试题试卷含解析
- 高速微笑服务培训
- 第十一章 一元一次不等式 单元检测卷(含答案)初中数学苏科版(2024)七年级下册
- 2026年动漫角色设计基础培训
- 2025年煤制天然气行业研究报告及未来发展趋势预测
- 外伤性脑出血病例分析与管理流程
- 食堂设计投标方案(3篇)
- 产前筛查设备管理制度
- 初级意大利语教程课件
- DB13-T2321-2015-盐碱地高粱咸水直灌栽培技术规程-河北省
- 木工机械日常点检表
- 市域治理现代化的培训课件
- 专家解析:渲染,烘托等的区别课件
- 东方希望(三门峡)铝业有限公司煤焦油脱水技改项目环评报告
- 20S517 排水管道出水口
评论
0/150
提交评论