Home > MCQs > IT & Programming > Ajax MCQs

Ajax MCQ

Ajax Quick Quiz

Question 1 of 10
  • Which readystate value indicates the response has been fully received from the asynchronous request?

    Answer & Explanation

    Correct Answer: 4 (readystate complete)

    Note: This Question is unanswered, help us to find answer for this one

  • Sending asynchronous requests is a huge improvement for web developers. Many of the tasks performed on the server are very time consuming. Before AJAX, this operation could cause the application to hang or stop. so, what is the best way to be done by web developers when sending asynchronous requests?

    Answer & Explanation

    Correct Answer: execute other scripts while waiting for server response

    Note: This Question is unanswered, help us to find answer for this one

  • AJAX applications are browser- and platform-dependent!

    Answer & Explanation

    Correct Answer: False

    Note: This Question is unanswered, help us to find answer for this one

  • What happens if an Ajax call completes (and calls its callback function) when other JavaScript is currently running?

    Answer & Explanation

    Correct Answer: The Ajax callback function will be queued until the currently-running code completes

    Note: This Question is unanswered, help us to find answer for this one

  • What is the value of the "status" attribute of the completed XMLHttpRequest object if the Ajax request has pulled the response data from the browser cache? Consider only non-IE browsers.

    Answer & Explanation

    Correct Answer: 200

    Note: This Question is unanswered, help us to find answer for this one

  • What HTTP response header is expected in reply to a CORS request?

    Answer & Explanation

    Correct Answer: Access-Control-Allow-Origin

    Note: This Question is unanswered, help us to find answer for this one

  • In non-IE browsers, what attribute should you check your XMLHttpRequest object for in order to see if it supports CORS?

    Answer & Explanation

    Correct Answer: withCredentials

    Note: This Question is unanswered, help us to find answer for this one

  • What is the value of the .status attribute of the completed XMLHttpRequest object if the Ajax request needed to follow a server-side redirect before successfully finding the intended resource?

    Answer & Explanation

    Correct Answer: 200

    Note: This Question is unanswered, help us to find answer for this one

  • What is the difference between the XMLHttpRequest object's .status and .statusText attributes?

    Answer & Explanation

    Correct Answer: .status returns a numeric-only code instead of the full HTTP response, which can be found in .statusText

    Note: This Question is unanswered, help us to find answer for this one

  • Which property of the popstate event contains a copy of the history entry's state object?

    Answer & Explanation

    Correct Answer: state

    Note: This Question is unanswered, help us to find answer for this one

  • Ajax Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.