nerdexam
Microsoft

70-515 · Question #34

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

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

Question

You create a new ASP.NET MVC 2 Web application. The following default routes are created in the Global.asax.cs file. (Line numbers are included for reference only.) 01 public static void RegisterRoutes(RouteCollection routes) 02 { 03 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 05 routes.MapRoute("Default", "{controller}/{action}/{id}", new {controller = "Home", action = "Index", id = ""}); 06 } You implement a controller named HomeController that includes methods with the following signatures. public ActionResult About() public ActionResult Index() public ActionResult Details(int id) You need to ensure that the About action is invoked when the root URL of the site is accessed. What should you do?

Options

  • AAt line 04 in the Global.asax.cs file, add the following line of code.
  • BAt line 04 in the Global.asax.cs file, add the following line of code.
  • CReplace line 05 in the Global.asax.cs file with the following line of code.
  • DReplace line 05 in the Global.asax.cs file with the following line of code.

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