Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am going to write the MVC, Microsoft exam (70-486) while preparing I come across one question frequently asking in the exam but I found a different answer in many websites.

Question is.

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. @Htmi.DisplayFor(model => log.Distance.ToString()+ ” miles”)

For Ref see this link

In some website the answer given is A, B while some website given A, C. I know A is right, but between B and C which one right and why? Please someone guide me
Posted
Updated 16-May-14 4:02am
v2
Comments
Sergey Alexandrovich Kryukov 16-May-14 11:04am    
No wonder those certifications don't indicate any real knowledge and skills...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900