What is the purpose of the 'XMLHttpRequest' object in JavaScript? MCQ with Answer and Explanation

What is the purpose of the 'XMLHttpRequest' object in JavaScript?
A. To handle events
B. To send and receive data from a server asynchronously
C. To style web pages
D. To parse XML documents
Answer: Option B
Solution (By JKSSB Mock Tests)
XMLHttpRequest is an API in JavaScript that allows web pages to make HTTP requests to servers asynchronously, enabling AJAX.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1
What is the primary objective of using a Content Delivery Network (CDN) in modern web application deployments?
A. To dynamically change structural HTML text files automatically
B. To manage remote email transport queues
C. To store and deliver cached static assets from geographically distributed proxy servers
D. To provide local multi-tab browsing interfaces

Correct Answer: Option C


Explanation:
CDNs place cached static assets (images, video, CSS) on a distributed network of edge servers near user locations to significantly accelerate page performance.

This question belongs to: Computer Internet and Web Technologies
Question #2
What does the 'WWW' prefix in a URL usually signify?
A. The server hosting the site
B. The port number
C. The protocol used
D. World Wide Web, indicating the resource is on the web

Correct Answer: Option D


Explanation:
The 'www' prefix is a common subdomain indicating that the resource is part of the World Wide Web, though it is not required and many sites omit it.

This question belongs to: Computer Internet and Web Technologies
Question #3
What does a web browser perform when executing a 'DNS Lookup' operation?
A. It queries DNS servers to resolve a domain name string into its underlying IP address.
B. It clears out localized hardware registry errors.
C. It establishes a secure tunnel path via proxy configurations.
D. It downloads heavy multimedia files to local cache blocks.

Correct Answer: Option A


Explanation:
DNS resolution looks up human-readable text domain destinations to find their matching numerical IP addresses so network connections can be established.

This question belongs to: Computer Internet and Web Technologies