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

    You are developing an ASP.NET Web page named WebPage.aspx. The page includes a user control named UserlnfoControl.ascx You need to expose a control property named FirstName and read its value from the page. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

    A. Add the following code segment to UserInfoControl.ascx.cs:protected string FirstName { get; set; }
    B. Add the following code segment to UserInfoControl.ascx.cs:public string FirstName { get; set; }
    C. Add the following code segment to WebPage.aspx.cs:var firstName = UserInfoControl1.Attributes ["FirstName"];
    D. Add the following code segment to WebPage.aspx.cs:var firstName = UserInfoControl1.FirstName;

  • Question 72:

    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.cs and Index.aspx to the appropriate subfolders. You then

    add a file named Route.cs to the Product folder that contains the following code. (Line numbers are included for reference only.)

    01 public class Routes : AreaRegistration

    02 {

    03 public override string AreaName

    04 {

    05 get { return "product"; }

    06 }

    08 public override void RegisterArea(

    AreaRegistrationContext context)

    09 {

    10 context.MapRoute("product_default",

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

    new { controller = "Product", action = "Index",

    id = "" });

    11 }

    12 }

    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 10 with the following code segment.context.MapRoute("product_default","{area}/ {controller}/{action}/{id}",new {area="product", controller = "Product", action = "Index", id = "" });
    B. Replace line 10 with the following code segment.context.MapRoute("product_default","{area}", new { controller = "Product", action = "Index", id = "" });
    C. Add the following code segment at line 11.AreaRegistration.RegisterAllAreas();
    D. Add the following code segment to the RegisterRoutes in the Global.asax.cs file.AreaRegistration.RegisterAllAreas();

  • Question 73:

    You are implementing a Web page that allows users to upload files to a Web server. The page includes a form that has a Submit button. You need to reject files larger than 1 MB. What should you do?

    A. Add an HTML input type= file control. Add an onSubmit handler to the form to check the file size and cancel the form submission if the file size is too large.
    B. Add an HTML input type= file control. Add an onChange handler to the input control to check the file size and cancel the upload if the file size is too large.
    C. Add an ASP.NET FileUpload control and configure it to run on the server. Add a server-side OnClick handler to the form's Submit button to save the file only if the file size is allowed.
    D. Add an ASP.NET FileUpload control and configure it to run on the server. Add a server-side OnDataBinding handler that saves the file only if the file size is allowed.

  • Question 74:

    You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled. You create an intermediate WCF service for logging messages sent to the primary service. The intermediate service is called via endpoint behaviour. The primary service is receiving malformed data from a client application. You need to enable inspection of the malformed data and prevent message tampering. What do you do?

    A. Specify a protection level of None in the contract for the intermediate service. Disable message and transport security from the client application configuration file.
    B. Specify a protection level of Sign in the contract for the intermediate service. Disable transport security fromthe client application configuration file.
    C. Modify the binding on the intermediate service to use netNamedPipeBinding
    D. Modify the binding on the intermediate service to use webHttpBinding

  • Question 75:

    You are developing an ASP.NET Web page. The page includes a List(Of Product) instance. You add a FormView control to display a single Product from this list. You need to bind the list to the FormView control. Which FormView property should you set in the code-behind file?

    A. DataSource
    B. DataSourceID
    C. DataKeyNames
    D. DataMember

  • Question 76:

    You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web application using .NET Framework 4.0.

    The Web application will be accessed by international audience. The Web application holds global and local resources for display elements that must be translated into the language that is preferred by the user. You are required to ensure

    that a Label control named CompanyLabel displays text in the user's preferred language from the global resource file.

    Which control markup will you use?

  • Question 77:

    You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web application using .NET Framework 4.0. The

    application will provide information about products manufactured by the company.

    The company has a branch office in Saudi Arabia.

    The Sales department employees of the branch office in Saudi Arabia will use the application.

    You are required to accomplish the following tasks:

    The application displays contents in the correct format for the employees of the Saudi Arabia office. Each page in the application is displayed in the right-to-left format.

    What will you do to accomplish these tasks? (Each correct answer represents a part of the solution. Choose two.)

    A. In the Web.config file of the Web application, set the culture attribute of the element to "ar-SA".
    B. In the Web.config file of the Web application, set the uiCulture attribute to "ar-SA".
    C. In the Web.config file of the Web application, set the culture attribute to "SA".
    D. In the Web.config file of the Web application, set the culture attribute of the element to "ar".
    E. Set the HTML dir attribute for the element of each page to "rfl".

  • Question 78:

    You deploy an ASP.NET application to an IIS server. You need to log health-monitoring events with severity level of error to the Windows application event log. What should you do?

    A. Run the aspnet_regiis.exe command.
    B. Set the Treat warnings as errors option to All in the project properties and recompile.
    C. Add the following rule to the healthMonitoring section of the web.config file.
    D. Add the following rule to the healthMonitoring section of the web.config file.

  • Question 79:

    You are developing an ASP.NET Web page that includes a text box control. The page includes a server- side method named ValidateValue. You need to configure the page so that the text box value is validated by using the ValidateValue method.

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

    A. Use the CompareValidator control.
    B. Use the CustomValidator control.
    C. Set ValidationGroup on the control to ValidateValue.
    D. Set OnServerValidate on the control to ValidateValue.

  • Question 80:

    You are creating an ASP.NET Web application that uses the SqlMembershipProvider. You plan to test locally and deploy to multiple production servers. You need to ensure that each deployed application accesses the same production database in Microsoft SQL Server. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

    A. Run the aspnet_regsql command to create the database on the appropriate SQL Server computer.
    B. Right-click App_Data in your Visual Studio 2010 project, click Add, and select New Item to create the SQL Server database on the appropriate SQL Server computer.
    C. Modify the connection string in the web.config file to specify the names of the production server and database.
    D. Modify the web.release.config file to transform the connection string to specify the names of the production server and 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.