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

    You use the ASP.NET Web Application template to create an application in a new Visual Studio solution. The project uses types that are defined in a class library project. Source code for the class library is frequently modified. You need to ensure that classes in the Web application project always reference the most recent version of the class library types. What should you do?

    A. Add the class library project to the solution. Modify the class library project to add a reference to the Web application project.
    B. Add the class library project to the solution. Modify the Web application project to add a reference to the class library project.
    C. Add a post-build step to the Web application project that copies the most recent version of the class library assembly to the bin folder of the Web application.
    D. Add a post-build step to the class library project that copies the most recent version of the class library assembly to the App_Code folder of the Web application. In the section of the web.config file, add an entry that specifies the location of the class library assembly.

  • Question 202:

    You are implementing an ASP.NET page in an e-commerce application. Code in a btnAddToCart_Click event handler adds a product to the shopping cart. The page should check the status of the shopping cart and always show a cart icon when one or more items are in the shopping cart. The page should hide the icon when the shopping cart has no items. You need to add an event handler to implement this requirement.

    Which event handler should you add?

    A. btnAddToCart_Click
    B. Page_Load
    C. Page_PreRender
    D. Page_PreInit

  • Question 203:

    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]");});

  • Question 204:

    You are developing an ASP.NET Web page that uses jQuery validation. The user should enter a valid email address in a text box that has ID txtEmail. The page must display "E-Mail address required" when the user does not enter an address

    and "Invalid e-mail address" when the user enters an address that is not formatted properly.

    You need to ensure that the appropriate error message is displayed when the text box does not contain a valid e-mail address.

    Which two code segments should you add? (Choose 2)

    A. txtEmail:{messages:{required: "E-mail address required",email: "Invalid e-mail address"}}
    B. messages:{txtEmail:{required: "E-mail address required",email: "Invalid e-mail address"}}
    C. txtEmail:{rules:{required: trueemail: true}}
    D. rules:{txtEmail:{required: trueemail: true}}

  • Question 205:

    You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID. The application will allow new users to register for an account. The application will generate an ID for the user based on the users full name. You need to implement this registration functionality. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

    A. Configure the SqlMembershipProvider in the web.config file.
    B. Configure the SqlProfileProvider in the web.config file.
    C. Create an ASP.NET page that contains a default CreateUserWizard control to create a new user account.
    D. Create an ASP.NET page that contains a custom form that collects the user information and then uses the Membership.CreateUser method to create a new user account.

  • Question 206:

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

    You are developing an ASP.NET template server control. You need to ensure that a new ID namespace is created within the page control hierarchy when the control. Which interface should you implement on the control?

    A. DataItemContainer
    B. NamingContainer
    C. DataKeysControl
    D. ExtenderControl

  • Question 208:

    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

  • Question 209:

    You have a C# code snippet with 2 classes, one composed by elements of the other.

    public class Student { public string Name {get;set;} } public class Supervisor { public string name {get;set;} public List {get;set;} }

    And a markup code snippet, with 2 repeaters imbricated + a ObjectDataSource retrieving a list of Supervisors, the top level repeater "rptSupervisors" is bound using ObjectDataSourceID to the ObjectDataSource, and the inside one "rptStudents" is not bound yet. We understand that we need a list of supervisors and sublists of their relative students.

    A. bind rptStudents with the list of current item in SupervisorsList using the ItemDataBound event of the rptStudents repeater
    B. bind rptStudents with the list of current item in SupervisorsList using the ItemCommand event of the rptSupervisor repeater
    C. databinding directly the rptStudents in the page load or something dummy like that (don't remember exactly)
    D. another dummy solution involving a "supervisors have all the same students" situation

  • Question 210:

    You create a page in an ASP.NET Web application. The page retrieves and displays data from a Microsoft SQL Server database. You need to create a data source that can connect to the database. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

    A. Use an ObjectDataSource control and set its TypeName property to System.Data.SqlClient.SqlConnection.
    B. Use a SqlDataSource control and configure its ConnectionString in the web.config file.
    C. Use an XmlDataSource control together with an Xml control that represents the database.
    D. Use a LinqDataSource control with entity classes that represent the elements in the database.

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.