nerdexam
Microsoft

70-515 · Question #203

70-515 Question #203: Real Exam Question with Answer & Explanation

Sign in or unlock 70-515 to reveal the answer and full explanation for question #203. The question stem and answer options stay visible for context.

Question

You are developing an ASP.NET MVC 2 Web application that displays product details. The global.asax.cs file contains the following code segment 01 public static void registerRoutes(RouteCollection routes) 02 { 03 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 04 routes.MapRoute("Default", "{controller}/{action}/{id}", new {controller = "Home", action = "index", id = UrlParameter.Optional}); 05 } The URL "/products/PRODUCTNAME", where PRODUCTNAME is the name of the product, must give details for the product that is stored in a Microsoft SQL Server database. You need to ensure that the routes are registered correctly. What should you do?

Options

  • AReplace line 04 with the following code segment routes.
  • BAdd the following code segment between lines 04 and 05 routes.
  • CReplace lines 03 and 04 with the following code segment routes.
  • DAdd the following code segment between lines 03 and 04. routes.

Unlock 70-515 to see the answer

You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-515 Practice