15 tips on exam 70-515 dumps free download

Tested of 70-515 exam question materials and courses 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 Apr 70-515 Study Guide Questions:

Q166. You are implementing an ASP.NET page. You add and configure the following ObjectDataSource. 

<asp:ObjectDataSource SelectMethod="GetProductByProductId" ID="odc" runat="server" TypeName="ProductDAL"> <SelectParameters> <asp:Parameter Name="productId" Type="Int32" /> 

</SelectParameters> 

</asp:ObjectDataSource> 

The page will be called with a query string field named pid. 

You need to configure the ObjectDataSource control to pass the value of the pid field to GetProductsByProductId method. 

What should you do? 

A. Replace the asp:Parameter with the following declaration. 

<asp:QueryStringParameter DefaultValue="pid" Name="productId" 

Type="Int32" /> 


B. Replace the asp:Parameter with the following declaration. 

<asp:QueryStringParameter QueryStringField="pid" Name="productId" Type="Int32" / 


C. Add the following event handler to the Selecting event of the ObjectDataSource control. 

Private Sub odc_Selecting(ByVal sender As Object, 

ByVal e As _ 

System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs) _ 

Handles odc.Selecting 


D. InputParameters("pid") = Request.QueryString("productId") 

End Sub 


E. Add the following code segment to the pages code-behind. 

Protected Sub Page_Load(ByVal sender As Object, 

ByVal e As System.EventArgs) Handles Me.Load 

odc.SelectParameters.Add("productId", Request.QueryString("pid")) 

End Sub 


Answer: B 


Q167. Which control allows you to bind to data items that are returned from a data source and display them? 

A. ListView Web Server Control 

B. DetailsView Web Server Control 

C. DataList Web Server Control 

D. Data Web Server Control 

Answer: A 


Q168. You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the Page.IsValid property. Which page event should you add an event handler to? 

A. Init 

B. Load 

C. PreInit 

D. PreLoad 

Answer: B 


Q169. You are preparing to deploy an ASP.NET application to a production server by publishing the application in Release configuration. You need to ensure that the connection string value that is stored in the web.config file is updated to the production server# s connection string value during publishing. 

What should you do? 

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

<connectionStrings> 

<add name="DB" connectionString="Server=ProdServer;Database=ProdDB;Integrated 

Security=SSPI;" providerName="Release" /> 

</connectionStrings> 


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


<connectionStrings> 

<add name="DB" connectionString="Server=ProdServer;Database=ProdDB;Integrated 

Security=SSPI;" xdt:Transform="Replace" xdt:Locator="Match(name)" /> 

</connectionStrings> 


C. Add the following code to the web.release.config file. 

<connectionStrings> 

<add name="DB" connectionString="Server=ProdServer;Database=ProdDB;Integrated 

Security=SSPI;" providerName="Release" /> 

</connectionStrings> 


D. Add the following code to the web.release.config file. 

<connectionStrings> 

<add name="DB" connectionString="Server=ProdServer;Database=ProdDB;Integrated 

Security=SSPI;" xdt:Transform="Replace" xdt:Locator="Match(name)" /> 

</connectionStrings> 


Answer: D 


Q170. You are implementing an ASP.NET page. Client-side script requires datA. 

Your application includes a class named Person with a Name property of type string. 

The code-behind file of the page includes the following code segment. 

public string JsonValue; 

List<Person> people = GetPeopleList(); 

JavaScriptSerializer json = new JavaScriptSerializer(); 


You need to use the JavaScriptSerializer class to serialize only the Name property of each 

item in the people list. 

Which code segment should you use? 


A. JsonValue = json.Serialize(people.Select(p => p.Name)); 

B. var names = from person in people 

select person; 

JsonValue = "{" + json.Serialize(names) + "}"; 

C. JsonValue = json.Serialize(people.SelectMany( p => p.Name.AsEnumerable())); 

D. var names = from person in people 

select person; 

JsonValue = json.Serialize(names); 

Answer: A 


70-515 exam topics

Updated 70-515 dumps free download:

Q171. You create a Web page that contains drop-down menus that are defined by using div tags in the following code. 


You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title. 

Which code segment should you use? 

A. $(".dropdown-menu").hover( 

function () { 

$(".menu-items"). slideDown (100); 

}, 

function () { 

$(".menu-items"). slideUp (100); 

); 


B. $(".dropdown-menu").hover( 

function () { 

$(".menu-items", this). slideDown (100); 

}, 

function () { 

$(".menu-items", this). slideUp (100); 

); 


C. $(".dropdown-menu").hover( 

function () { 

$(this). slideDown (100); 

}, 

function () { 

$(this). slideUp (100); 

); 


D. $(".dropdown-menu").hover( 

function () { 

$(this, ".menu-title"). slideDown (100); 

}, 

function () { 

$(this, ".menu-title"). slideUp (100); 

); 

Answer: B 


Q172. You have a login.ascx control and to display it in a view which method u would use.. 

A. http.display 

B. http.partial 

C. http.load 

D. http.get 

Answer: B 


Q173. You create a Web page that contains the following code. 


You need to provide the following implementation. 

Each time the AddFile button is clicked, a new div element is created. 


The new div element is appended after the other file upload div elements and before the AddFile span. 

Each new element has a unique identifier. 

Which code segment should you use? 

A. $("#AddFile").click(function () { 

var id = "File" + ++lastId; 

var item = $(".File:first").clone(true); 

$("input:file", item).attr({ id: id, name: id }); 

item.insertBefore("#AddFile"); 

}); 


B. $("#AddFile").click(function () { 

var id = "File" + ++lastId; 

$(".File:first").clone(true).attr({ id: id, name: id }).insertBefore 

("#AddFile"); 

}); 


C. $("#AddFile").click(function () { 

var id = "File" + ++lastId; 

}); 


D. $("#AddFile").click(function () { 

var id = "File" + ++lastId; 

var item = $(".File:first").clone(true); 

$("input:file", item).attr({ id: id, name: id }); 

item.insertAfter("input[type=file]"); 

}); 


Answer: A 


Q174. You are developing an ASP.NET Web application. 

The application will contain a page that is customized for various browsers. The application will use output cache to optimize performance. 

You need to ensure that the page is cached by browser type and major version only. 

Which attribute should you add to the OutputCache directive? 

A. varyByCustom= “browser” 

B. varyByCustom= “User-Agentt” 

C. varyByHeader= “browser” 

D. varyByHeader= “User-Agentt” 

Answer: A 


Q175. You are updating an ASP.NET Web Application. 

The application includes the fallowing classes. 


public class Supervisor 

public string FirstName { get; set; } 

public string LastName { get; set; } 

public List<Employee> Employees { get; set; } 

public class Employee 

public String FirstName { get; set; } 

public String LastName { get; set; } 


An application page contains the fallowing markup. 


<asp:Repeater ID="rptSupervisor" runat="server" 

DataSourceID="odsEmployees"> 

<ItemTemplate> 

<%#Eval("FirstName") %> <%#Eval("LastName") %><br /> 

Employees:<br /> 

<asp:Repeater ID="rptEmployees" runat="server"> 


<ItemTemplate> 

<%#Eval("FirstName") %> <%#Eval("LastName") %> 

<br /> 

</ItemTemplate> 

</asp:Repeater> 

</ItemTemplate> 

</asp:Repeater> 

<asp:ObjectDataSource ID="odsEmployees" runat="server" 


SelectMethod="GetSupervisorWithEmployees" 

TypeName="BusinessLayer"> 

</asp:ObjectDataSource> 


You need to ensure that the page displays a list of supervisors with their corresponding employees. 

What should you do? 

A. Bind rptEmployees during the OnItemCommand event of rptSupervisor. 

B. Bind rptEmployees during the OnItemDataBound event of rptEmployees. 

C. Set the rptEmployees DataSourceID attribute to "Employees". 

D. Set the rptEmployees DataSource attribute to <%# Eval("Employees") %> 

Answer: D 


70-515 actual test

Tested exam certification 70-515:

Q176. You are developing an ASP.NET Web page named WebPage.aspx. 

The page includes a user control named UserlnfoControl.ascx 

You need to expose a control property named FirstName and read its value from the page. 

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


A. Add the following code segment to UserInfoControl.ascx.cs: 

protected string FirstName { get; set; } 

B. Add the following code segment to UserInfoControl.ascx.cs: public string FirstName { get; set; } 

C. Add the following code segment to WebPage.aspx.cs: var firstName = UserInfoControl1.Attributes["FirstName"]; 

D. Add the following code segment to WebPage.aspx.cs: var firstName = UserInfoControl1.FirstName; 

Answer: BD 


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


Q178. You are implementing an ASP.NET page that hosts a user control named CachedControl. You need to ensure that the content of the user control is cached for 10 seconds and that it is regenerated when fetched after the 10 seconds elapse. 

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

A. Modify the hosting page's caching directive as follows. <%@ OutputCache Duration="10" VaryByParam="None" %> 

B. Add the following meta tag to the Head section of the hosting page. 

<meta http-equiv="refresh" content="10"> 

C. Add the following caching directive to the hosted control. <%@ OutputCache Duration="10" VaryByParam="None" %> 

D. Add the following caching directive to the hosted control. <%@ OutputCache Duration="10" VaryByControl="None" %> 

Answer: AC 


Q179. 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 application using .NET Framework 4.0. 

The ASP.NET application is used to track employee performance. 

It uses Microsoft Windows authentication. 

Employees are members of a group named Employees. 

Managers are members of a group named Managers. 

The root folder of the application is named Details. 

The Details folder displays information about employees‘ performance. 

The Details folder has a subfolder named MoreDetails. 

You need to ensure that employees and managers can access pages stored in the Details folder. 

However, only managers can access pages stored in the MoreDetails folder. 

You make the following entries in the Web.config file in the Details folder. 

(Line numbers are given for reference only.) 


1 <authentication mode="Windows" / > 

2 <authorization> 

3 <allow roles="Employees, Managers" / > 

4 <deny users="*" /> 

5 </authorization> 


You make the following entries in the Web.config file in the MoreDetails folder. 

(Line numbers are given for reference only.) 

1 <authentication="Windows" /> 

2 <authorization> 

3 <allow roles="Managers" /> 

4 <deny users="*" /> 

5 </authorization> 


When managers try to access pages stored in the MoreDetails folder, they receive the following error message: 

"An error occurred during the processing of a configuration file required to service this request." 

You must ensure that managers are able to access pages stored in the MoreDetails folder. 

What will you do to accomplish this? 

A. Add the following directive between line 1 and line 2 in the Web.config file in the 

MoreDetails folder: 

<identity impersonate="false" /> 


B. Modify line 4 in the Web.config file in the MoreDetails folder as follows: 

<allow users="*" /> 


C. Add the following directive between line 1 and line 2 in the Web.config file in the 

MoreDetails folder: 

<identity impersonate="true" /> 


D. Replace line 1 in the Web.config file in the MoreDetails folder with 

<authentication mode="Windows" /> 


E. Add the following directive between line 1 and line 2 in the Web.config file in the Details 

folder: 

<identity impersonate="true" /> 


Answer: D 


Q180. You are developing an ASP.NET web page. 

The page must display data from XML file named Inventory.xml. Inventory.xml contains data in the following format. 

<?xml version="1.0" standalone="yes"?> 

<inventory> 

<vehicle Make="BMW" Model="M3" Year="2005" Price="30000" instock="Yes"> 

<Ratings>....</Ratings> 

</Vechicle> 

.... 

</Inventory> 

You need to display Vehicle elements that have the inStock attribute set to YES. 

Wich two controls should you add to the page? (Each control presents part of the solution.Choose two.) 

A. <asp:GridView ID="GridView1" runat="server" 

AutoGenerateColumns="True" 

DataSource="inventoryXMLDataSource"> 

.... 

</asp:GridView> 


B. <asp:GridView ID="GridView1" runat="server" 

AutoGenerateColumns="True" 

DataSourceID="inventoryXMLDataSource"> 

.... 

</asp:GridView> 


C. <asp:XMLDataSource ID="InventoryXMLDataSource" 

runat="server" DataFile="Inventory.xml" 

XPath="/Inventory/Car[@InStock='Yes']"> 

</asp:XMLDataSource> 


D. <asp:XMLDataSource ID="InventoryXMLDataSource" 

runat="server" DataFile="Inventory.xml" 

XPath="/Inventory/Car/InStock='Yes'"> 

<Data>Inventory.xml</Data> 

</asp:XMLDataSource> 


Answer: AC 



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

Microsoft 70-515 Certification Sample Questions and Answers: http://www.braindumpsall.net/70-515-dumps/

P.S. New 70-515 dumps PDF: http://www.4easydumps.com/70-515-dumps-download.html