MCQ Practice Single Best Answer Topic: What is AJAX

Q What is the purpose of the AJAX method $.getJSON() in jQuery?

Question ID
#19104
Subchapter
What is AJAX
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A To initiate a POST request
  • B To retrieve JSON data from the server using GET
  • C To serialize form data
  • D To send a synchronous request
Correct Answer: B

Explanation

The $.getJSON() method in jQuery is used to retrieve JSON data from the server using a GET request. It simplifies the process of making asynchronous requests and handling JSON responses.

Share This Question

Share this MCQ with your friends or study group.