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 281:

    A Web service returns a list of system users in the following format.

    Name of first user

    [email protected]

    Name of second user

    [email protected]

    You need to populate a drop-down menu with the IDs and names of the users from the Web service, in the order provided by the service.

    Which code segment should you use?

    A. $.ajax({type: "GET",url: serviceURL,success: function(xml) {$.each($(xml), function(i, item) {$ ("").attr("value", id).text(tx).appendTo("#dropdown");});}});
    B. $.ajax({type: "GET",url: serviceURL,success: function(xml) {$(xml).find("user").each(function() {var id = $(this).id;var tx = $(this).name.text;$("").attr("value", id).text(tx).appendTo("#dropdown");});}});
    C. $.ajax({type: "GET",url: serviceURL,success: function(xml) {$(xml).find("user").each(function() {var id = $(this).attr("id");var tx = $(this).find("name").text();$("").attr("value", id).text(tx).appendTo ("#dropdown");});}});
    D. $.ajax({type: "GET",url: serviceURL,success: function(xml) {xml.find("user").each(function(node) {var id = $(node).attr("id");var tx = $(node).find("name").text();$("").attr("value", id).text(tx).appendTo ("#dropdown");});}});

  • Question 282:

    You are implementing an ASP.NET MVC 2 application. In the Areas folder, you add a subfolder named Product to create a single project area.

    You add files named ProductController.vb and Index.aspx to the appropriate subfolders. You then add a file named Route.vb to the Product folder that contains the following code. (Line numbers are included for reference only.)

    01 Public Class Route

    Inherits AreaRegistration

    03 Public Overrides ReadOnly Property AreaName As String 04 Get

    05 Return "product"

    06 End Get

    07 End Property

    09 Public Overrides Sub RegisterArea(

    ByVal context As AreaRegistrationContext)

    11 context.MapRoute("product_default",

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

    New With {.controller = "Product", .action = "Index",

    .id = ""})

    13 End Sub

    End Class

    When you load the URL http:///product, you discover that the correct page is not returned. You need to ensure that the correct page is returned.

    What should you do?

    A. Replace line 11 with the following code segment.context.MapRoute("product_default","{area}/ {controller}/{action}/{id}",New With {.area = "product", .controller = "Product",.action = "Index", .id = ""})
    B. Replace line 11 with the following code segment. context.MapRoute("product_default","{area}",New With {.controller = "Product", .action = "Index", .id = ""})
    C. Add the following code segment at line 12.AreaRegistration.RegisterAllAreas()
    D. Add the following code segment to the RegisterRoutes method in the Global.asax.vb file. AreaRegistration.RegisterAllAreas()

  • Question 283:

    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 284:

    You are implementing an ASP.NET Web site. The Web site contains a Web service named CustomerService. The code-behind file for the CustomerService 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 285:

    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

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.