Microsoft
70-513 · Question #329
70-513 Question #329: Real Exam Question with Answer & Explanation
Sign in or unlock 70-513 to reveal the answer and full explanation for question #329. The question stem and answer options stay visible for context.
Question
You are consuming a Windows Communication Foundation (WCF) service in an ASP. NET Web application. The service interface is defined as follows: [ServiceContract] public interface ICatalog { [OperationContract] [WebGet(UriTemplate="/Catalog/Items/{id}", ResponseFormat=WebMessageFormat.Json)] string RetrieveItemDescription(int id); } The service is hosted at Catalogsvc. You need to call the service using jQuery to retrieve the description of an item as indicated by a variable named itemId. Which code segment should you use?
Options
- A$get(String.format("/Catalogsvc/Catalog/Items/id{0}", itemId) null,
- B$get(String.format("/Catalogsvc/Catalog/Items/{0}", itemId), null,
- C$get(String.format("/Catalogsvc/Catalog/Items/{0}", itemld), null,
- D$get(String.format("/Catalogsvc/Catalog/Items/id{0}", itemld), null,
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.