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

    You create a Web page that contains drop-down menus that are defined by using div tags in the following code.

    You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title. Which code segment should you use?

    A. $(".dropdown-menu").hover(function () {$(".menu-items"). slideDown (100);},function () {$ (".menu- items"). slideUp (100);});
    B. $(".dropdown-menu").hover(function () {$(".menu-items", this). slideDown (100);},function () {$ (".menu- items", this). slideUp (100);});
    C. $(".dropdown-menu").hover(function () {$(this). slideDown (100);},function () {$(this). slideUp (100);}); D. $(".dropdown-menu").hover(function () {$(this, ".menu-title"). slideDown (100);},function () {$ (this, ".menu-title"). slideUp (100);});

  • Question 192:

    You are developing an ASP.NET Web page that will display the median value from a sequence of integer values. You need to create an extension method to compute the median value. Which interface should you add the extension method to?

    A. IComparer(Of T)
    B. IEnumerable(Of T)
    C. IEnumerator(Of T)
    D. IEqualityComparer(Of T)

  • Question 193:

    You are developing an ASP.NET MVC 2 Web application. The application contains a controller named HomeController, which has an action named Index. The application also contains a separate area named Blog. A view within the Blog area must contain an ActionLink that will link to the Index action of the HomeController. You need to ensure that the ActionLink in the Blog area links to the Index action of the HomeController. Which ActionLink should you use?

    A. Html.ActionLink("Home", "Index", "Home")
    B. Html.ActionLink("Home", "Index", "Home", New With {.area = ""}, Nothing)
    C. Html.ActionLink("Home", "Index", "Home", New With {.area = "Blog"}, Nothing)
    D. Html.ActionLink("Home", "Index", "Home", New With {.area = "Home"}, Nothing)

  • Question 194:

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

    You create a Web page named TestPage.aspx and a user control named contained in a file named TestUserControl.ascx.

    You need to dynamically add TestUserControl.ascx to TestPage.aspx.

    Which code segment should you use?

    A. protected void Page_Load(object sender, EventArgs e){Control userControl = Page.LoadControl("TestUserControl.ascx"); Page.Form.Controls.Add(userControl);}
    B. protected void Page_Load(object sender, EventArgs e){Control userControl = Page.FindControl("TestUserControl.ascx"); Page.Form.Controls.Load(userControl);}
    C. protected void Page_PreInit(object sender, EventArgs e){Control userControl = Page.LoadControl("TestUserControl.ascx"); Page.Form.Controls.Add(userControl);}
    D. protected void Page_PreInit(object sender, EventArgs e){Control userControl = Page.FindControl("TestUserControl.ascx"); Page.Form.Controls.Load(userControl);}

  • Question 196:

    You create a custom server control named Task that contains the following code segment. (Line numbers are included for reference only.)

    You need to ensure that adding a Task control from the Toolbox creates markup in the following format.

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

    A. Add the following code segment to the project's AssemblyInfo.cs file.[assembly: TagPrefix("DevControls", "Dev")]
    B. Replace line 05 with the following code segment.[DefaultValue("New Task")]
    C. Insert the following code segment immediately before line 03.[ToolboxData("")]
    D. Replace line 10 with the following code segment.output.Write("");

  • Question 197:

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

    You are creating an ASP.NET Web site. The site is configured to use Membership and Role management providers.

    You need to check whether the currently logged-on user is a member of a role named Administrators.

    Which code segment should you use?

    A. Dim isMember As Boolean =Roles.GetUsersInRole ("Administrators").Any()
    B. Dim isMember As Boolean =Membership.ValidateUser ( User.Identity.Name , "Administrators")
    C. Dim isMember As Boolean =Roles.GetRolesForUser ("Administrators").Any ()
    D. Dim isMember As Boolean = User.IsInRole ("Administrators")

  • Question 199:

    You are implementing an ASP.NET application that will use session state in out-of-proc mode. You add the following code.

    Public Class Person Public Property FirstName As String Public Property LastName As String End Class

    You need to add an attribute to the Person class to ensure that you can save an instance to session state. Which attribute should you use?

    A. Bindable
    B. Serializable
    C. DataContract
    D. DataObject

  • Question 200:

    You are developing an ASP.NET Web application.

    Application data is stored in a Microsoft SQL Server 2008 database. You configure a connection string named cnnContoso.

    The application must cache the data that is returned from the database by using this connection string. You need to ensure that the application checks the database every 10 seconds.

    What should you do?

    A. Add the following configuration to the section of the web.config file.
    B. Add the following configuration to the section of the web.config file.
    C. Add the following @ Page directive to pages that query the database.
    D. Add the following @ Page directive to pages that query 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.