Microsoft TS: Web Applications Development with Microsoft .NET Framework 4 認定 70-515 試験問題:
1. jQuery CheckBoxes In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes
A) var n = $(":input, :checked").length;
B) var n = $("input:selected").length;
C) var n = $("input:checked").length;
D) var n = $(":input, :selected").length;
2. You are developing an ASP.NET web page.
The page includes the following EntityDataSource control:
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=AdventureWorksEntities" DefaultContainerName="AdventureWorksEntities" EnableFlattening="False" EntitySetName="Products" />
The page must filter the data that is displayed in a grid on a query string parameter named ProductPrefix. The grid must display products whose ProductName starts with the query string value.
You need to ensure that the page generates the appropriate database query.
What should you do?
A) Add the following element to the EntityDataSource control:
<asp:QueryExtender ID="QueryExtender1" runat="server" TargetControlID="EntityDataSource1"> <asp:PropertyExpression Name="ProductName" /> <asp:DynamicFilterExpression ControlID="ProductPrefix" />
</asp:QueryExtender>
B) Add the following element to the EntityDataSource control: <WhereParameters>
<asp:DynamicQueryStringParameter QueryStringField="ProductPrefix" Name="ProductName" /> </WhereParameters>
C) Add the following element to the EntityDataSource control: <asp:QueryExtender ID="QueryExtender1" runat="server" TargetControlID="EntityDataSource1"> <asp:SearchExpression SearchType="StartsWith" DataFields="ProductName"> <asp:QueryStringParameter QueryStringField="ProductPrefix" />
</asp:SearchExpression>
</asp:QueryExtender>
D) Add the following element to the EntityDataSource control: <WhereParameters>
<asp:QueryStringParameter QueryStringField="ProductPrefix" Name="ProductName" />
</WhereParameters>
3. 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>
4. You are developing an ASP.NET web application.
The application includes a class library named Contoso.dll that will be used by other ASP.Net applications
on the same server.
You need to ensure that only one copy of the class library exists on the server.
What should you do?
A) Add the following code segment to the top of each web page.
<%@ Register TagPrefix="cc" NameSpace="contoso"
Assembly="contoso" %>
B) Install the class library into the Global Assembly Cache on the server.
C) Deploy the class library on the App_Code folder
D) Add the following assembly attribute to the Contoso class library's AssemblyInfo.cs file. [assembly: AssemblyConfiguration("Shared")]
5. You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You create an ASP.NET Web site using .NET Framework 4.0.
Only registered users of the company will be able to use the application.
The application holds a page named UserAccount.aspx that enables new users to register them to the
registered users' list of the company.
The UserAccount page hold numerous TextBox controls that accept users personal details, such as user
name, password, home address, zipcode, phone number, etc.
One of the TextBox controls on the page is named ZipCode in which a user enters a zip code.
You must ensure that when a user submits the UserAccount page, ZipCode must contain five numeric
digits.
What will you do to accomplish this?
(Each correct answer represents a part of the solution. Choose two.)
A) Use RequiredValidator
B) Use RangeValidator.
C) Use RegularExpressionValidator
D) Use RequiredFieldValidator
E) Use CompareValidator
質問と回答:
| 質問 # 1 正解: C | 質問 # 2 正解: C | 質問 # 3 正解: D | 質問 # 4 正解: B | 質問 # 5 正解: C、D |














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