Microsoft 70-515 ExamTS: Web Applications Development with Microsoft .NET Framework 4

Total Question: 284 Last Updated: February 15,2017
  • Updated 70-515 Dumps
  • Based on Real 70-515 Exams Scenarios
  • Free 70-515 pdf Demo Available
  • Check out our 70-515 Dumps in a new PDF format
  • Instant 70-515 download
  • Guarantee 70-515 success in first attempt
Package Select:

Questions & Answers PDF

Practice Test Software

Practice Test + PDF 30% Discount

Price: $110.95 $55.95

Buy Now Free Trial
PDF Version Software Version

100% Guarantee on Products High Success Rate, supported by our 99.3% pass rate history and money back guarantee should you fail your exam.

Yes Yes

Updated regularly Get hold of Updated Exam Materials Every time. Free updates without any extra charges to the actual exam.

Yes Yes

70-515 PDF Questions & Answers Available in a universal Adobe PDF format. Portable and printable anywhere anytime.

Yes Yes

Quality and Value Exact Exam Questions with Correct Answers, verified by Experts with years of Experience in IT Field.

Yes Yes

Customizable Testing Engine Simulates a real world exam environment to prepare you for 70-515 Success.

Yes

Unlimited Practice 70-515 Exam Re-takes Practice Until you get it right. With options to Highlight missed questions, you can analyse your mistakes and prepare for Ultimate 70-515 Success.

Yes

Special Promotion More than 30% Discount for Royal Pack.

Yes

Secrets to mcts exam 70-515 dumps

Proper study guides for Most recent Microsoft TS: Web Applications Development with Microsoft .NET Framework 4 certified begins with Microsoft 70-515 preparation products which designed to deliver the Realistic 70-515 questions by making you pass the 70-515 test at your first time. Try the free 70-515 demo right now.

2017 Jan 2013 dumps for 70-515:

Q151. You are implementing an ASP.NET page. You add and configure the following 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. 

protected void odc_Selecting(object sender, 

ObjectDataSourceSelectingEventArgs e) 

D. InputParameters["p id "] = Request.QueryString["p roductId "]; 

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

protected void Page_Load(object sender, EventArgs e) 

odc.SelectParameters.Add("productId", Request.QueryString["p i d"]); 

Answer:


Q152. You are implementing an ASP.NET MVC 2 Web application that contains the following class. 

public class DepartmentController : Controller { static List<Department> departments = 

new List<Department>(); 

public ActionResult Index() 

return View(departments); 

public ActionResult Details(int id) 

return View(departments.Find(x => x.ID==id)); 

public ActionResult ListEmployees(Department d) 

List<Employee> employees = GetEmployees(d); 

return View(employees); 

You create a strongly typed view that displays details for a Department instance. You want the view to also include a listing of department employees. 

You need to write a code segment that will call the ListEmployees action method and output the results in place. 

Which code segment should you use? 

A. <%= Html.Action("ListEmployees", Model) %> 

B. <%= Html.ActionLink("ListEmployees", "Department", "DepartmentController") %> 

C. <% Html.RenderPartial("ListEmployees", Model); %> 

D. <%= Html.DisplayForModel("ListEmployees") %> 

Answer:


Q153. You use the ASP.NET Web Site template to create a Web site that will be deployed to 

multiple locations. Each location will specify its SMTP configuration settings in a separate file named smtp.config in the root folder of the Web site. 

You need to ensure that the configuration settings that are specified in the smtp.config file will be applied to the Web site. 

Which configuration should you use in web.config? 

A. <configuration> 

<system.net> 

<mailSettings> 

<smtp configSource="smtp.config" allowOverride="true"> 

<network host="127.0.0.1" port="25"/> 

</smtp> 

</mailSettings> 

</system.net> 

</configuration> 

B. <configuration> 

<system.net> 

<mailSettings> 

<smtp configSource="smtp.config" /> 

</mailSettings> 

</system.net> 

</configuration> 

C. <configuration xmlns:xdt="http://schemas.microsoft.com/XML- Document-Transform"> 

<location path="smtp.config" xdt:Transform="Replace" xdt:Locator="Match 

(path)"> 

<system.net /> 

</location> 

</configuration> 

D. <configuration> 

<location path="smtp.config"> 

<system.net> 

<mailSettings> 

<smtp Devilery Method="Network" > 

<Network Host = "127.0.0.1" Port="25"/> 

</smtp> 

</mailSettings> 

</system.net> 

</location> 

</configuration> 

Answer:


Q154. You are implementing a read-only page that includes the following controls. 

You disable view state to improve performance. You need to ensure that the page is updated to display the latest data when the user clicks the refresh button. 

Which code segment should you use? 

A. protected void Page_PreInit(object sender, EventArgs e) 

if (!IsPostBack) 

gvCustomers.DataSource = GetCustomers(); 

gvCustomers.DataBind(); 

B. protected void Page_Load(object sender, EventArgs e) 

gvCustomers.DataSource = GetCustomers(); 

gvCustomers.DataBind(); 

C. protected void gvCustomers_DataBinding(object sender, EventArgs e) 

gvCustomers.DataSource = GetCustomers(); 

gvCustomers.DataBind(); 

D. protected void Page_PreRender(object sender, EventArgs e) 

if (!IsPostBack) 

gvCustomers.DataSource = GetCustomers(); 

gvCustomers.DataBind(); 

Answer:


Q155. You use the following declaration to add a Web user control named TestUserControl.ascx to an ASP.NET page named TestPage.aspx. 

<uc:TestUserControl ID="testControl" runat="server"/> 

You add the following code to the code-behind file of TestPage.aspx. 

private void TestMethod() 

… 

You define the following delegate. 

public delegate void MyEventHandler(); 

You need to add an event of type MyEventHandler named MyEvent to TestUserControl.ascx and attach the page's TestMethod method to the event. 

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

A. Add the following line of code to TestUserControl.ascx.cs. public event MyEventHandler MyEvent; 

B. Add the following line of code to TestUserControl.ascx.cs. public MyEventHandler MyEvent; 

C. Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration. 

<uc:TestUserControl ID="testControl" runat="server" OnMyEvent="TestMethod"/> 

D. Replace the TestUserControl.ascx reference in TestPage.aspx with the following 

declaration. 

<uc:TestUserControl ID="testControl" runat="server" 

MyEvent="TestMethod"/> 

Answer: AC 


Up to date mcts exam 70-515:

Q156. You are implementing an ASP.NET Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translated into the language that is selected by the user. You need to ensure that the Label control named lblCompany displays text in the users selected language from the global resource file. Which control markup should you use? 

A. <asp:Label ID="lblCompany" runat="server" 

meta:resourcekey="lblCompany" /> 

B. <asp:Label ID="lblCompany" runat="server" 

Text="meta:lblCompany.Text" /> 

C. <asp:Label ID="lblCompany" runat="server" 

Text="<%$ Resources:lblCompanyText %>" /> 

D. <asp:Label ID="lblCompany" runat="server" 

Text="<%$ Resources:WebResources, lblCompanyText %>" /> 

Answer:


Q157. You are troubleshooting an ASP.NET Web application. System administrators have recently expanded your web farm from one to two servers. Users are periodically reporting an error message about invalid view state. You need to fix the problem. What should you do? 

A. Set viewStateEncryptionMode to Auto in web.config on both servers. 

B. Set the machineKey in machine.config to the same value on both servers. 

C. Change the session state mode to SQLServer on both servers and ensure both servers use the same connection string. 

D. Override the SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium methods in the page base class to serialize the view state to a local web server file. 

Answer:


Q158. You are developing a WCF service. 

The service includes an operation names GetProduct. 

You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML. Which two actions should you perform (Choose 2) 

A. Add the WebGet attribute to the service contract. 

B. Set WebOperationContext.Current.OutgoingRequest.ContentType to "text/xml" in the GetProduct method. 

C. Add the WebInvoke attribute to the service contract. 

D. Set WebOperationContext.Current.OutgoingResponse.ContentType to "text/xml" in the GetProduct method. 

Answer: CD 


Q159. You create a Web page that contains the following code. (Line numbers are included for reference only.) 

You need to ensure that when the user clicks an item in the list, the text color of the "Welcome!" message will change. 

Which declaration should you use? 

A. <ul id="color"> 

<li onclick="changeColor(this.innerText);">Black</li> 

<li onclick="changeColor(this.innerText);">Red</li> 

</ul> 

B. <ul id="color"> 

<li onclick="changeColor(this.style.color);">Black</li> 

<li onclick="changeColor(this.style.color);">Red</li> 

</ul> 

C. <ul id="color"> 

<li><a 

onfocus="changeColor(this.innerText);">Red</a></li> 

<li><a 

onfocus="changeColor(this.innerText);">Black</a></li> 

</ul> 

</ul> 

D. <ul id="color"> 

<li onclick="changeColor(this.style.color);">Black</li> 

<li onclick="changeColor(this.style.color);">Red</li> 

</ul> 

E. <ul id="color"> 

<li><a 

onfocus="changeColor(this.innerText);">Red</a></li> 

<li><a 

onfocus="changeColor(this.innerText);">Black</a></li> 

</ul> 

F. <ul id="color"> 

Answer:


Q160. You are implementing an ASP.NET application that makes extensive use of JavaScript libraries. Not all pages use all scripts, and some scripts depend on other scripts. When these libraries load sequentially, some of your pages load too slowly. You need to use the ASP.NET Ajax Library Script Loader to load these scripts in parallel. 

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

A. In your site's master page, add a call to Sys.loader.defineScripts to define each of the scripts that are used in the site. 

B. In your site's master page, add a call to Sys.loader.registerScript to define each of the scripts that are used in the site. 

C. In each page that uses scripts, add a call to Sys.get for each script that is needed in that page. 

D. In each page that uses scripts, add a call to Sys.require for each script that is needed in that page. 

Answer: AD 


Related 70-515 Articles