nerdexam
Microsoft

70-515 · Question #107

You are developing an ASP.NET MVC 2 Web application. A page makes an AJAX request and expects a list of company names in the following format. ["Adventure Works","Contoso"] You need to write an…

The correct answer is C. JsonResult. See the full explanation below for the reasoning.

Question

You are developing an ASP.NET MVC 2 Web application. A page makes an AJAX request and expects a list of company names in the following format. ["Adventure Works","Contoso"] You need to write an action method that returns the response in the correct format. Which type should you return from the action method?

Options

  • AAjaxHelper
  • BXDocument
  • CJsonResult
  • DDataContractJsonSerializer

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    79% (19)
  • D
    13% (3)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice