Microsoft
70-513 · Question #25
70-513 Question #25: Real Exam Question with Answer & Explanation
Sign in or unlock 70-513 to reveal the answer and full explanation for question #25. The question stem and answer options stay visible for context.
Question
A class named TestService implements the following interface: [ServiceContract] public interface ITestService { [OperationContract] DateTime GetServiceTime(); } TestService is hosted in an ASP.NET application. You need to modify the application to allow the GetServiceTime method to return the data formatted as JSON. It must do this only when the request URL ends in /ServiceTime. What should you do?
Options
- AAdd this attribute to the GetServiceTime method.
- BAdd this attribute to the GetServiceTime method.
- CAdd this attribute to the GetServiceTime method
- DAdd this attribute to the GetServiceTime method.
Unlock 70-513 to see the answer
You've previewed enough free 70-513 questions. Unlock 70-513 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.