[Jun 2016] 70-515 study material

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 70-515 Exam Dumps (PDF & VCE):
Available on: https://www.certleader.com/70-515-dumps.html


Free of 70-515 torrent materials and free samples for Microsoft certification for consumer, Real Success Guaranteed with Updated 70-515 pdf dumps vce Materials. 100% PASS TS: Web Applications Development with Microsoft .NET Framework 4 exam Today!

2016 Jun 70-515 Study Guide Questions:

Q61. You are developing an ASP.NET Web page. 

You add a data-bound GridView control. The GridView contains a TemplateField that includes a DropDownList. You set the GridViews ClientIDMode property to Static, and you set the ClientIDRowSuffix property to ProductID. 

You need to be able to reference individual DropDownList controls from client-side script by using the ProductID. 

What should you set the ClientIDMode property of the DropDownList to? 

A. AutoID 

B. Static 

C. Inherit 

D. Predictable 

Answer: D 


Q62. 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: 

<WhereParameters> 

<asp:DynamicQueryStringParameter QueryStringField="ProductPrefix" 

Name="ProductName" /> 

</WhereParameters> 


B. Add the following element to the EntityDataSource control: 

<WhereParameters> 

<asp:QueryStringParameter QueryStringField="ProductPrefix" Name="ProductName" /> 

</WhereParameters> 


C. 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> 


D. 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> 


Answer: D 


Q63. You create an ASP.NET MVC 2 Web application that contains the following controller class. 

Public Class ProductController Inherits System.Web.Mvc.Controller Shared products As List(Of Product) = New List(Of Product)() Function Index() As ActionResult Return View() End Function End Class 

In the Views folder of your application, you add a view page named Index.aspx that includes the following @ Page directive. 

<%@ Page Inherits="System.Web.Mvc.ViewPage" %> You test the application with a browser. You receive the following error message when the Index method is invoked: # The view 'Index' or its master was not found.# 

You need to resolve the error so that the new view is displayed when the Index method is invoked. 

What should you do? 

A. Change the name of the Index.aspx file to Product.aspx. 

B. Create a folder named Product inside the Views folder. Move Index.aspx to the Product folder. 

C. Replace the @ Page directive in Index.aspx with the following value. <%@ Page Inherits="System.Web.Mvc.ViewPage(Product)" %> 

D. Modify the Index method by changing its signature to the following Function Index(ByVal p As Product) As ActionResult 

Answer: B 


Q64. 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. Web Setup project 

B. Web-based deployment 

C. Deployment manifest 

D. Web Deployment Tool 

Answer: D 


Q65. You need to ensure that when the button is clicked, both update panels update the tim without generating a postback. What should you do? 

A. Add the following marktip to UpdatePanel1. 

<Triggers> 

<asp:PostBackTrigger ControlID="btnSave" /> 

</Triggers> 


B. Set the UpdateMode property for the UpdatePanel2 to "Always" 


C. Add the following markup to UpdatePanel2 


<Triggers> 

<asp:AsyncPostBackTrigger ControlID="btnSave" 

EventName="Click" /> 

</Triggers> 


D. Set the UpdateMode property for UpdatePanel2 to "Conditional" 

Answer: C 


70-515  torrent

Regenerate dumps for microsoft certification 70-515:

Q66. Migration .net 3.5 to 4.0 

You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5. 

A. <assembles> someoptions </assembles> 

B. <pages controlRenderingCompatibilityVersion="3.5"/> 

C. <compilation targetframework = "3.5" /> 

D. <xhtmlConformance mode="Legacy" /> 

Answer: B 


Q67. You create an ASP.NET page that contains the following tag. 

<h1 id="hdr1" runat="server">Page Name</h1> 

You need to write code that will change the contents of the tag dynamically when the page 


is loaded. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.) 

A. Me.hdr1.InnerHtml = "Text" 

B. TryCast(hdr1.Parent, HtmlGenericControl).InnerText = "Text" 

C. Dim h1 As HtmlGenericControl = TryCast(Me.FindControl("hdr1"), HtmlGenericControl) h1.InnerText = "Text" 

D. Dim h1 As HtmlGenericControl = TryCast(Parent.FindControl("hdr1"), HtmlGenericControl) h1.InnerText = "Text" 

Answer: AC 


Q68. Which tool is used to simplify the migration, management and deployment of IIS Web servers, Web applications and Web sites? 

A. System Designer 

B. XCOPY deployment 

C. Deployment Designer 

D. Web Deployment 

Answer: D 


Q69. You create a Web page that contains the following image element. 

<img id="myImage" src="/image1.png" /> 

You need to write a JavaScript function that will dynamically change which image is displayed. The function must be compatible across different browsers. 

Which code segment should you use? 

A. function changeImage() { 

myImage.src = "image2.png"; 


B. function changeImage() { 

document.getElementById("myImage").src = 

"image2.png"; 


C. function changeImage() { 

getElementById("myImage").src = 

"image2.png"; 


D. function changeImage() { 

window.getElementById("myImage").src = 

"image2.png"; 


Answer: B 


Q70. You are deloping an ASP.NET Dynamic Data Web application. 

The application uses entities from a global library named Entities. 

The Application_Start event contains the following code segment: 

DefaultModel.RegisterContect(typeof)( 

Entities.MyDBDataContext), new ContextConfiguration() { 

ScaffoldAllTables = false }); 

You need to ensure that the application shows the Order and Customer entities and hides all other entities. 

What should you do? 

A. Set the ScaffoldAllTables property of the ContextConfiguration to true. 

B. Create a partial class for each entity except Order and Customer within the Entities library and apply the [ScaffoldTable(false)] attribute. 

C. Create a partial class for the Order and Customer entities within the web application and apply the [ScaffoldTable(true)] attribute. 

D. Create a partial class for the Order and Customer entities within the Entities library and apply the [ScaffoldTable(true)] attribute. 

Answer: D 


70-515  torrent

Real asme sa 515-70:

Q71. You are deploying an ASP.NET Web application to a remote server. You need to choose a deployment method that will ensure that all IIS settings, in addition to the Web content, will deploy to the remote server. Which deployment method should you choose? 

A. the XCOPY command-line tool 

B. the Copy Web Site tool 

C. the Web Deployment tool 

D. the Publish Web Site utility 

Answer: C 


Q72. You are implementing an ASP.NET Web site. The root directory of the site contains a page named Error.aspx. You need to display the Error.aspx page if an unhandled error occurs on any page within the site. You also must ensure that the original URL in the browser is not changed. 

What should you do? 

A. Add the following configuration to the web.config file. 

<system.web> 

<customErrors mode="On"> 

<error statusCode="500" redirect="~/Error.aspx" /> 

</customErrors> 

</system.web> 


B. Add the following configuration to the web.config file. 

<system.web> 

<customErrors redirectMode="ResponseRewrite" 

mode="On" defaultRedirect="~/Error.aspx" /> 

</system.web> 


C. Add the following code segment to the Global.asax file. 

Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) 

Response.Redirect("~/Error.aspx") 

End Sub 


D. Add the following code segment to the Global.asax file. 

Protected Sub Page_Load(ByVal sender As Object, 

ByVal e As System.EventArgs) Handles Me.Load 

Server.Transfer("~/Error.aspx") 

End Sub 


Answer: B 


Q73. You're developing an ASP web page. the pages requires access to types that are defined in an assembly named Contoso.businessobjects.dll. 

You need to ensure that the page can access these types. 

A. <%@ assembly ID= "Contoso.bussinessobjects" %> 

B. <%@ assembly target name= "Contoso.bussinessobjects" %> 

C. <%@ assembly name= "Contoso.bussinessobjects" %> 

D. <%@ assenbly Virtual Path= "Contoso.bussinessobjects" %> 

Answer: C 


Q74. You are developing an ASP.NET Web page. You add the following markup to the page. 

<asp:FileUpload id="FileUpload1" runat="server" /> <asp:Button id="btnUpload" Text="Upload selected file" OnClick="btnUpload_Click" runat="server" /> <asp:Label id="lblFeedback" runat="server" /> 

You add the following code segment to the code-behind. (Line numbers are included for reference only.) 

01 Protected Sub btnUpload_Click(ByVal sender As Object, 

02 ByVal e As EventArgs) Handles btnUpload.Click 

03 If () Then 

04 Dim saveName As String = 

05 Path.Combine("c:\uploadedfiles\", 

06 FileUpload1.FileName) 


08 lblFeedback.Text = "File successfully uploaded." 

09 Else 

10 lblFeedback.Text = "File upload failed." 

11 End If 

13 End Sub 

You need to save the uploaded file and display a message to the user that indicates that the upload either succeeded or failed. 

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) 

A. Replace line 03 with the following code segment. 

If (FileUpload1.HasFile) Then 


B. Replace line 03 with the following code segment. 

If (FileUpload1.FileContent.Length > 0) Then 


C. Insert the following code segment at line 07. 

FileUpload1.SaveAs(saveName) 


D. Insert the following code segment at line 07. 

FileUpload1.FileContent.CopyTo( 

New FileStream(saveName, FileMode.Open)) 


Answer: AC 


Q75. You create a new ASP.NET MVC 2 Web application. The following default routes are created in the Global.asax.vb file. (Line numbers are included for reference only.) 

01 Shared Sub RegisterRoutes(ByVal routes As RouteCollection) 

02 

03 routes.IgnoreRoute("{resource}.axd/{*pathInfo}") 

04 


05 routes.MapRoute( 

"Default", 

"{controller}/{action}/{id}", 

New With {.controller = "Home", .action = "Index", .id = ""} 

06 End Sub 

You implement a controller named HomeController that includes methods with the following signatures. 

Function Index() As ActionResult 

Function Details(ByVal id As Integer) As ActionResult 

Function DetailsByUsername( 

ByVal username As String) As ActionResult 

You need to add a route to meet the following requirements. 

.

 The details for a user must be displayed when a user name is entered as the path by invoking the DetailsByUsername action. 


.

 User names can contain alphanumeric characters and underscores, and can be between 3 and 20 characters long. 


What should you do? 

A. Replace line 05 with the following code segment. 

routes.MapRoute("Default", "{controller}/{action}/{id}", New With {.controller = "Home", 

.action = "DetailsByUsername",.id = ""}) 


B. Replace line 05 with the following code segment. 

routes.MapRoute( "Default", "{controller}/{action}/{username}", New With {.controller = 

"Home", .action = "DetailsByUsername", .username = ""},New With {.username = 

"\w{3,20}"}) 


C. At line 04, add the following code segment. 

routes.MapRoute("Details by Username","{username}", New With {.controller = "Home", 

.action = "DetailsByUsername"}, New With {.username = "\w{3,20}"} ) 


D. At line 04, add the following code segment. 

routes.MapRoute( "Details by Username", "{id}", New With {.controller = "Home", .action = 


"DetailsByUsername"},New With {.id = "\w{3,20}"} ) 

Answer: C 



see more TS: Web Applications Development with Microsoft .NET Framework 4