Microsoft TS: Web Applications Development with Microsoft .NET Framework 4 認定 70-515 試験問題:
1. You are developing an ASP.NET Web page that contains input controls, validation controls, and a button
named btnSubmit.
The page has the following code-behind. (Line numbers are included for reference only.)
01 public partial class _Default : System.Web.UI.Page
02 {
03 protected void SaveToDatabase()
04 {
05
06 }
07
08 protected void btnSubmit_Click(object sender, EventArgs e)
09 {
10
11 }
12 }
You need to ensure that all data that is submitted passes validation before the data is saved in a database. What should you do?
A) Add the following method override.
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
if (Page.IsValid) this.SaveToDatabase();
}
B) Add the following method override.
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if (Page.IsValid) this.SaveToDatabase();
}
C) Add the following code segment at line 10.
if (Page.IsValid) this.SaveToDatabase();
D) Add the following method override.
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (Page.IsValid) this.SaveToDatabase();
}
2. You are developing an ASP.NET Web page.
The page uses the MicrosoftAjax.js script file and the MicrosoftAjaxWebForms.js script file.
You need to ensure that both scripts are combined into a single script.
Which markup should you use?
A) <asp:ScriptManager ID="sm1" runat="server"> <CompositeScript ScriptMode="Release">
<Scripts>
<asp:ScriptReference Name="MicrosoftAjax.js" />
<asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
</Scripts>
</CompositeScript>
</asp:ScriptManager>
B) <asp:ScriptManager ID="sm1" runat="server">
<Scripts>
<asp:ScriptReference Name="MicrosoftAjax.js" />
<asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
</Scripts>
</asp:ScriptManager>
C) <asp:ScriptManager ID="sm1" runat="server"> <CompositeScript ScriptMode="Auto">
<Scripts>
<asp:ScriptReference Name="MicrosoftAjax.js" />
<asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
</Scripts>
</CompositeScript>
</asp:ScriptManager>
D) <asp:ScriptManager ID="sm1" runat="server"> <CompositeScript>
<Scripts>
<asp:ScriptReference Name="MicrosoftAjax.js" />
<asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
</Scripts>
</CompositeScript>
</asp:ScriptManager>
3. You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You have recently finished the development of an ASP.NET Web application using .NET Framework 4.0.
Now, you are deploying the ASP.NET Web application to a remote server.
You are required to select a deployment method that will make sure that all Internet Information Services
(IIS) settings, in addition to the Web content, are deployed to the remote server.
Which of the following deployment methods will you select to accomplish this?
A) Deployment manifest
B) Web-based deployment
C) Web Deployment Tool
D) Web Setup project
4. Which directive defines master page-precise attributes that are used by the ASP.NET page parser and compiler?
A) @ Master
B) @ MasterPage
C) @ PageType
D) @ MasterType
5. Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface?
A) DataPaging
B) DataPagingField
C) DataPager
D) DataPagerCollection
質問と回答:
| 質問 # 1 正解: C | 質問 # 2 正解: D | 質問 # 3 正解: C | 質問 # 4 正解: A | 質問 # 5 正解: C |














1152 お客様のコメント
品質保証JPexamはIT認定試験のシラバスに従って、試験問題の範囲を正確に絞って、的中率が99%の最新問題集を捧げます。
1年間の無料更新サービスJPexamは1年以内に問題集の無料更新サービスを提供し、お客様がいつでも最新版の問題集を持つことを保証いたします。もし試験の内容が変更されたら、弊社は直ちにお客様にお知らせします。それに、弊社の問題集が更新されたら、早速メールで最新バージョンを送付いたします。
全額返金JPexamの問題集を利用すると、短時間で勉強しても試験に合格できるのを保証いたします。試験に不合格になってしまった場合、弊社は全額返金いたします。(
ご購入前のお試しJPexamは問題集のサンプルを無料で提供いたします。ご購入前にサンプルを試用して製品の品質を確認することができます。ご遠慮なく利用してください。
