News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
[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 itemld. Which code segment should you use?

  1. $get(String.format("/Catalogsvc/Catalog/Items/id{0}", itemId) null, function (data) { }, javascript");
  2. $get(String.format("/Catalogsvc/Catalog/Items/{0}", itemId), null, function (data) { }, "json");
  3. $get(String.format("/Catalogsvc/Catalog/Items/{0}", itemld), null, function (data) { }, "xml");
  4. $get(String.format("/Catalogsvc/Catalog/Items/id{0}", itemld), null, function (data) { }, "json");
Answer: Answer is b
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;