You need to display the "miles" unit description after the distance in the GetLog view. Which line of code should you use to replace line GL21? (Each correct answer presents a complete solution. Choose all that apply.)
A.
@log.Distance miles
B.
@Htrml.DisplayFor(model =>log.Distance) miles
C.
@log.Distance.ToString() @Html.TextArea("miles")
D.
@Html.DisplayFor(model => log.Distance.ToString() + " miles")
Yes it works but these are Microsoft questions, which often means that 1 out of 4 answers is total bollocks and the remaining 3 all work but 1 or 2 out of these are the way you SHOULD do it.
Sorry, my first impression was B & D. I would recommend to site owners to somehow merge that pop-up window with the question content to avoid such misleading info : - ).
There is code snippet missing. There is a foreach with log as variable and that makes A correct
upvoted 2 times
...
...
This section is not available anymore. Please use the main Exam Page.70-486 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
pizzaHawai
4 years, 11 months agoPhantasm
5 years, 2 months agozimzimzimma
5 years agomr_
4 years, 11 months agomr_
4 years, 11 months agoAT_TW
5 years, 3 months agoJobair
5 years, 3 months agomajco333
5 years, 3 months agotanujgyan
5 years ago