Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

AJAX Online Quiz Test

Topics Covered

  • General
  • Request
  • Sending request
  • Response
  • Request general
  • Request State
  • Request
  • Request Header
  • Request Flow
  • Request status

Useful for hiring

  • Front-End Developer
  • AJAX Developer
  • AJAX Expert
  • AJAX Consultants

Start hiring job-fit candidates using this assessment

GET A DEMO

"We are impressed with Interview Mocha's comprehensive IT skill test batteries and their ability to provide tailor-made assessments quickly. The results we got from Interview Mocha exceeded our expectations, employees found the tests quick, fun, and a benchmark of their knowledge."

Ajay Garg, Siemens,
Associate Manager
Question

Select the correct order of states for a request made by a client to the server using the XMLHttpRequest object.

A) HEADERS_RECEIVED
B) OPENED
C) LOADING
D) DONE
E) UNOPENED

Answer
    • E -> C -> B -> A -> D

    • C -> E -> B -> D -> A

    • E -> B -> A -> C -> D

    • E -> B -> C -> D -> A

Question

In the response received from the server for an AJAX call that was made, an error status was found. How will you know if the error has occurred on client side or server side?

Answer
    • Status code starting with 3 implies a server side error where as status code starting with 4 implies a client side error.

    • Check the call stack for the request. If a server call throws the error then is it on the server side.

    • The statusText contains the information regarding the location of the error.

    • If the status code starts with 5 then the error is on the server side. If it starts with 4 then the error is on the client side.

Question

An AJAX call was made to the server on two different occasions. Below are the results of the calls:
A) Did not find any relevant data.
B) You are not authorized to access that page.

What will be the value of the status property in response with these two cases?

Answer
    • A: 404
      B: 403

    • A: "NOT FOUND"
      B: "UNAUTHORIZED"

    • A: 404
      B: 401

    • A: "NOT FOUND"
      B: "FORBIDDEN"

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO