




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、微軟認(rèn)證考試試題庫及答案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等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 醫(yī)療領(lǐng)域中教育技術(shù)的應(yīng)用案例
- 蘇教版六年級(jí)數(shù)學(xué)下冊(cè)第4單元比例第4課時(shí)解比例課件
- 2026屆湖南省武岡市化學(xué)高一上期中教學(xué)質(zhì)量檢測模擬試題含解析
- 中小學(xué)《五項(xiàng)管理》實(shí)施方案工作方案
- 斑疹熱動(dòng)物宿主感染機(jī)制
- 團(tuán)考試題庫及答案解析
- 【高三】【數(shù)學(xué)】2025【秋】開學(xué)第一課:為夢(mèng)想飛翔(課件)
- C語言程序設(shè)計(jì) 課件 任務(wù) 5 學(xué)生成績管理系統(tǒng)之系統(tǒng)功能設(shè)計(jì)
- 基于現(xiàn)代玉米育種效率提升的關(guān)鍵技術(shù)策略分析
- 成都慶元小鎮(zhèn)工業(yè)園配套生活區(qū)開發(fā)策劃59p
- 《優(yōu)勢(shì)談判技巧研習(xí)》課件
- 廚房培訓(xùn)切配
- 房屋建筑和市政基礎(chǔ)設(shè)施工程施工招標(biāo)文件范本(2022年版)
- 醫(yī)務(wù)人員職業(yè)暴露預(yù)防及處理課件(完整版)
- JJF 1375-2024機(jī)動(dòng)車發(fā)動(dòng)機(jī)轉(zhuǎn)速測量儀校準(zhǔn)規(guī)范
- GB/T 9799-2024金屬及其他無機(jī)覆蓋層鋼鐵上經(jīng)過處理的鋅電鍍層
- 第四單元《光現(xiàn)象》單元概述-大單元教學(xué)2023-2024學(xué)年八年級(jí)物理上冊(cè)同步備課系列(人教版)
- HG/T 6313-2024 化工園區(qū)智慧化評(píng)價(jià)導(dǎo)則(正式版)
- TD/T 1044-2014 生產(chǎn)項(xiàng)目土地復(fù)墾驗(yàn)收規(guī)程(正式版)
- 第31屆全國中學(xué)生物理競賽決賽理論考試試題與參考答案
- 天恒化工有限公司3萬噸年水合肼及配套項(xiàng)目環(huán)評(píng)可研資料環(huán)境影響
評(píng)論
0/150
提交評(píng)論