70-515 Exam Details

  • Exam Code
    :70-515
  • Exam Name
    :TS: Web Applications Development with Microsoft .NET Framework 4
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :285 Q&As
  • Last Updated
    :Jan 26, 2022

Microsoft 70-515 Online Questions & Answers

  • Question 151:

    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 caching 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-Agent"
    C. VaryByHeader="browser"
    D. VaryByHeader="User-Agent"

  • Question 152:

    You are developing an ASP.NET Dynamic Data Web application.

    Boolean fields must display as Yes or No instead of as a check box. You replace the markup in the default Boolean field template with the following markup.

    You need to implement the code that displays Yes or No.

    Which method of the FieldTemplateUserControl class should you override in the BooleanField class?

    A. OnLoad
    B. Construct
    C. OnDataBinding
    D. SaveControlState

  • Question 153:

    You are implementing an ASP.NET Web site. The Web site contains a Web service named ProductService . The code-behind file for the ProductService class contains the following code segment.

    public class ProductService : System.Web.Services.WebService { public List GetProducts( int categoryID ) { return GetProductsFromDatabase(categoryID); } }

    You need to ensure that the GetProducts method can be called by using AJAX.

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

    A. Apply the WebService attribute to the ProductService class.
    B. Apply the ScriptService attribute to the ProductService class.
    C. Apply the WebMethod attribute to the GetProducts method.
    D. Apply the ScriptMethod attribute to the GetProducts method.

  • Question 154:

    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"

  • Question 155:

    You are implementing an ASP.NET AJAX page that contains two div elements. You need to ensure that the content of each div element can be refreshed individually, without requiring a page refresh. What should you do?

    A. Add two forms to the page.Add a script manager and an update panel to each form.Add a content template to each update panel, and move each div element into a content template.
    B. Add two forms to the page.Add a script manager and an update panel to each form.Add a content template to each update panel, and move each div element into a content template.
    C. Add a form and two update panels to the page.Add a script manager to the form.Add a content template to each update panel, and move a div element into each content template.
    D. Add a form and two update panels to the page.Add two script managers to the form, one for each update panel.Add a content template to each update panel, and move each div element into a content template.

  • Question 156:

    You are developing an ASP.NET website that uses multiple layers of themes. You want to ensure that attributes will be correctly applied to controls when multiple themes specify the same control attribute. What is the order of precedence that defines how ASP.NET applies themes?

    Select and Place:

  • Question 157:

    You have created an ASP.NET server control named ShoppingCart for use by other developers. Some developers report that the ShoppingCart control does not function properly with ViewState disabled. You want to ensure that all instances

    of the ShoppingCart control work even if ViewState is disabled.

    What should you do?

    A. Require developers to set EnableViewStateMac to true.
    B. Store state in ControlState instead of ViewState.
    C. Serialize the state into an Application state entry called "MyControl".
    D. Require developers to change the session state mode to SQLServer.

  • Question 158:

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

    Public Class DepartmentController

    Inherits Controller

    Shared departments As List(Of Department) =

    New List(Of Department)

    Function Index() As ActionResult

    Return View(departments)

    End Function

    Function Details(ByVal id As Integer) As ActionResult

    Return View(departments.Find(Function(x) x.ID = id))

    End Function

    Function ListEmployees(ByVal d As Department) As ActionResult Dim employees As List(Of Employee) = GetEmployees(d)

    Return View (employees)

    End Function

    End Class

    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?

  • Question 159:

    You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using the ASP.NET page designer. You need to add a control to the master page

    to define the region.

    Which control should you add?

    A. Content
    B. ContentPlaceHolder
    C. PlaceHolder
    D. Substitution

  • Question 160:

    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.

    You create a Web page in the application.

    The Web page will get large sets of data from a data source.

    You add a DataPager control to the page.

    You are required to display navigation controls that enable you to create a custom paging Ul for the DataPager control.

    What will you do?

    A. Use NextPreviousPagerField.
    B. Use NumericPagerField.
    C. Use PreviousPagerField.
    D. Use NextPagerField.
    E. Use TemplatePagerField.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-515 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.