nerdexam
Microsoft

70-515 · Question #43

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

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

Question

You are implementing an ASP.NET MVC 2 Web application that contains several folders. The Views/Shared/DisplayTemplates folder contains a templated helper named Score.ascx that performs custom formatting of integer values. The Models folder contains a class named Player with the following definition. public class Player { public String Name { get; set; } public int LastScore { get; set; } public int HighScore { get; set; } } You need to ensure that the custom formatting is applied to LastScore values when the HtmlHelper.DisplayForModel method is called for any view in the application that has a model of type Player. What should you do?

Options

  • ARename Score.ascx to LastScore.ascx.
  • BMove Score.ascx from the Views/Shared/DisplayTemplates folder to the Views/Player/Display
  • CAdd the following attribute to the LastScore property.
  • DAdd the following attribute to the LastScore property.

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