Web Developer Framework 4.0 Sample Questions – 20

Question: You need to design a deployment solution for the rewritten Web application. Which approach should you recommend.

  1. Deploy the rewritten Web application to the existing file path on each server in the Web farm.
  2. Compile the rewritten Web application and deploy the compiled library to the global assembly cache.
  3. Add the rewritten Web application to an application pool that contains only ASP.NET 4 Web applications.
  4. Add the rewritten Web application to the same application pool as Web applications written in ASP.NET 2.0, ASP.NET 3.0, and ASP.NET 3.5.

Correct Answer: 3


Question: You need to design a solution for pro-grammatically adding reusable user-interface code to views and allowing the user-interface code to be rendered from the server side. Which approach should you recommend

  1. Create a jQuery library plug-in.
  2. Create an HtmlHelper extension method.
  3. Create a controller that returns an ActionResult.
  4. Create a WebForm server control that stores values in ViewState.

Correct Answer: 2


Question: You need to design session state management for the rewritten Web application. Which approach should you recommend

  1. Use a persistent cookie to store the authentication ticket.
  2. Use a third-party cookie to store the authentication ticket.
  3. Use different machine key element attributes and values across all three servers.
  4. Use the same machine key element attributes and values across all three servers.

Correct Answer: 4


Question: You need to recommend appropriate technologies for designing Web forms for entry and retrieval of news items. Which technologies should you recommend (Each correct answer presents a complete solution. Choose two.)

  1. ASMX and SOAP
  2. WCF Data Services and jQuery
  3. ASP.NET MVC 2 and Microsoft AJAX
  4. Entity Framework and Microsoft Silverlight

Correct Answer: 2,3


Question:  You need to design a solution for capturing an exception. Which approach should you recommend

  1. Use a Page_Error method.
  2. Use a HandleError attribute.
  3. Use a customErrors element.
  4. Use an Application_Error method.

Correct Answer: 2


Question: You need to design a deployment solution for the rewritten Web application. Which approach should you recommend

  1. Use MSDeploy and FTP.
  2. Use DB Deployment and FTP.
  3. Use MSDeploy and One-Click Publishing.
  4. Use DB Deployment and One-Click Publishing.

Correct Answer: 3


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

  1. Replace the GridView control with a ListView control.
  2. Set the ClientIDMode attribute to Predictable in the web.config file.
  3. Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.
  4. Set the @ OutputCache directive’s VaryByControl attribute to the ID of the GridView control.

Correct Answer: 2

Tagged . Bookmark the permalink.

Leave a Reply