What is the purpose of AJAX in web development ?

2026

What is the purpose of AJAX in web development ?

  1. A.

    Server-side validation

  2. B.

    Asynchronous communication with server

  3. C.

    Database management

  4. D.

    Styling web pages

Attempted by 64 students.

Show answer & explanation

Correct answer: B

AJAX stands for Asynchronous JavaScript and XML. Its primary purpose is to enable web pages to communicate with a server asynchronously, meaning data can be exchanged in the background without refreshing or reloading the entire page. This creates a smoother, more responsive user experience by updating only specific parts of a webpage as needed.\nOption B is correct because it directly describes this asynchronous communication capability. Option A (Server-side validation) typically occurs on the server using languages like PHP or Python, not specifically AJAX. Option C (Database management) involves backend systems like SQL, while Option D (Styling web pages) is handled by CSS. Therefore, AJAX’s core function is facilitating efficient, non-blocking data transfer between client and server.

Explore the full course: Tpsc Assistant Technical Officer