Get Complete Q&A from 70-486 Exam Questions

70-486 | You need to modify the application…

Question: 8

You need to modify the application to meet the productId requirement. What should you do?

A. Modify the RegisterGlobalFilters method of the Global.asax.es file as follows.
Contract.Assume<ArgumentException>(productId != 0);

B. Modify the GetDealPrice method of ProductController as follows.
Contract.Requires<ArgumentException>(productId > 0);

C. Modify the RegisterGlobalFilters method of the Global.asax.es file as follows.
Contract.Requires<ArgumentException>(productId > 0);

D. Modify the GetDealPrice method of ProductController as follows.
Contract.Assume<ArgumentException>(productId > 0);

Answer: B

Leave a Reply