1D0-720 · Question #56
1D0-720 Question #56: Real Exam Question with Answer & Explanation
The correct answer is B. To interact with server-side scripts and retrieve data asynchronously.. XMLHttpRequest (XHR) is a browser API that allows JavaScript to send HTTP requests to a server and receive responses without reloading the page - this is the foundation of AJAX (Asynchronous JavaScript and XML), making B correct. A is wrong - Audio/video playback is handled by th
Question
Options
- ATo play audio and video files.
- BTo interact with server-side scripts and retrieve data asynchronously.
- CTo encrypt user data.
- DTo create offline web applications.
Explanation
XMLHttpRequest (XHR) is a browser API that allows JavaScript to send HTTP requests to a server and receive responses without reloading the page - this is the foundation of AJAX (Asynchronous JavaScript and XML), making B correct.
- A is wrong - Audio/video playback is handled by the
<audio>and<video>HTML5 elements, not XHR. - C is wrong - Encryption is handled by HTTPS/TLS at the transport layer or the Web Crypto API, not XHR.
- D is wrong - Offline capabilities are provided by Service Workers and the Cache API (or the older AppCache), not XHR.
Memory tip: Think of XHR as a messenger between your browser and a server - it requests data behind the scenes and returns it asynchronously, keeping the page live while it works. The "X" in AJAX stands for XHR's original purpose.
Topics
Community Discussion
No community discussion yet for this question.