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

    You are creating an ASP.NET Web application. The application must call a WCF service by using a WCF routing service. You need to ensure that the application can invoke the target service by using the router endpoint. What should you do?

    A. Add a service reference to the router service. In the client binding configuration, specify the address of the router service.
    B. Add a service reference to the target service. In the client binding configuration, specify the address of the target service.
    C. Add a service reference to the router service. In the client binding configuration, specify the address of the target service.
    D. Add a service reference to the target service. In the client binding configuration, specify the address of the router service.

  • Question 22:

    You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the

    JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one page to another.

    What should you do?

    A. Replace the GridView control with a ListView control.
    B. Set the ClientIDMode attribute to Predictable in the web.config file.
    C. Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.
    D. Set the @ OutputCache directives VaryByControl attribute to the ID of the GridView control.

  • Question 23:

    You are implementing an ASP.NET application. You add the following code segment. Public Function GetNonSecretUsers() As List(Of Person) Dim secretUsers() As String = {"@secretUser", "@admin", "@root"}

    Dim allpeople As List(Of Person) = GetAllPeople()

    ...

    End Function

    You need to add code to return a list of all Person objects except those with a UserId that is contained in the secretUsers list. The resulting list must not contain duplicates.

    Which code segment should you use?

    A. Dim secretPeople = (From p In allpeopleFrom u In secretUsersWhere p.UserId = uSelect p).Distinct()Return allpeople.Except(secretPeople)
    B. Return From p In allpeopleFrom u In secretUsersWhere p.UserId uSelect p
    C. Return (From p In allpeopleFrom u In secretUsersWhere p.UserId uSelect p).Distinct()
    D. Dim people As List(Of Person) = New List(Of Person)(From p In allpeopleFrom u In secretUsersWhere p.UserId uSelect p) Return people.Distinct()

  • Question 24:

    State management

    You have to store user data of 200 KB in an object.

    Which state management technique to use:

    A. Server session
    B. Cookie
    C. ViewState
    D. Hidden Field

  • Question 25:

    You are developinASP.NETg an 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 ScaffoldAMTables 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 attribute.
    C. Create a partial class for the Order and Customer entities within the Web application and apply the [ScaffoldAMTables ]
    D. Create a partial class for the Order and Customer entities within the Entities library and apply the [ScaffoldAMTables ]

  • Question 26:

    Gridview: How to change the image of an image control place in each row in a gridview:

    A. ItemDataBound
    B. Init
    C. Prerender

  • Question 27:

    You are developing an ASP.NET MVC 2 Web application.

    A page makes an AJAX request and expects a list of company names in the following format.

    ["Adventure Works","Contoso"]

    You need to write an action method that returns the response in the correct format.

    Which type should you return from the action method?

    A. AjaxHelper
    B. XDocument
    C. JsonResult
    D. DataContractJsonSerializer

  • Question 28:

    You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master.

    You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public property named CityName.

    protected void Page_Load(object sender, EventArgs e)

    {

    string s = Master.CityName;

    }

    You need to ensure that TestPage.aspx can access the CityName property.

    What should you do?

    A. Add the following directive to TestPage.aspx.
    B. Add the following directive to TestPage.aspx.
    C. Set the Strict attribute in the @ Master directive of the TestMaster.master page to true.
    D. Set the Explicit attribute in the @ Master directive of the TestMaster.master page to true.

  • Question 29:

    You are implementing an ASP.NET MVC 2 Web application that contains several folders.

    The Views/Shared/DisplayTemplates folder contains a templated helper named Score.ascx that performs custom formatting of integer values.

    The Models folder contains a class named Player with the following definition.

    public class Player

    {

    public String Name { get; set; }

    public int LastScore { get; set; }

    public int HighScore { get; set; }

    }

    You need to ensure that the custom formatting is applied to LastScore values when the HtmlHelper.DisplayForModel method is called for any view in the application that has a model of type Player.

    What should you do?

    A. Rename Score.ascx to LastScore.ascx.
    B. Move Score.ascx from the Views/Shared/DisplayTemplates folder to the Views/Player/ DisplayTemplates folder.
    C. Add the following attribute to the LastScore property. [UIHint("Score")]
    D. Add the following attribute to the LastScore property. [Display(Name="LastScore", ShortName="Score")]

  • Question 30:

    You are implementing an ASP.NET MVC 2 Web application. You create a shared user control named MenuBar.ascx that contains the application# s menu. You need to use the menu bar in all application views.

    What should you do?

    A. In the site# s master page, create a div element with an ID of Navigation. Add the following code segment inside this div element.
    B. In the site# s master page, create a div element with an ID of Navigation. Add the following code segment inside this div element.
    C. In each of the controller# s action methods, add an entry to the ViewData collection with a key of Navigation and a value of ~/Views/Shared/MenuBar.ascx.
    D. In the site# s Global.asax.cs file, register a route named Navigation that points to the ~/Views/Shared/ MenuBar.ascx file.

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.