ITPEC FE Morning October 2022 Question 10

Which of the following is a technology used to provide dynamic UI contents without reloading the entire web page by using an asynchronous communication feature of JavaScript?

Explanation

Ajax — Asynchronous JavaScript and XML exchanges data with the server in the background and updates part of the page.

With Ajax, JavaScript in the browser sends a request asynchronously (with XMLHttpRequest or fetch), keeps the page usable while it waits, and rewrites only the part of the page that changes when the response (XML, JSON or HTML) arrives. Map services that load new tiles as you drag are a classic example.

Answer (a)

Why not others:

  • •(b) CSS — Cascading Style Sheets describe the layout and appearance of a page; they do not communicate with a server
  • •(c) RSS — an XML format for distributing summaries of updated web content, read by feed readers
  • •(d) SNS — a social networking service, a type of web service rather than a page technology

Key rule: Updating part of a page without reloading it means asynchronous JavaScript requests, which is Ajax.

Algorithm and Programming · AI-written, may contain errors

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.