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 style web pages
B. To send and receive data from a server asynchronously
C. To handle events
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
Which of the following extensions in a URL represents a top-level domain (TLD) reserved exclusively for accredited educational institutions?
A. .com
B. .edu
C. .org
D. .gov

Correct Answer: Option B


Explanation:
The '.edu' top-level domain (TLD) is reserved strictly for educational organizations and institutional bodies, primarily in the United States.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which parameter indicates a 'Web Cache Poisoning' exploit intent?
A. An attacker manipulates a web server's proxy cache hub into storing and serving a flawed or malicious version of a webpage to subsequent innocent users.
B. An attacker updates a computer's local graphics driver without authorization.
C. An attacker cuts a physical underwater fiber optic internet line.
D. An attacker sends thousands of unwanted physical junk mail deliveries to an office building.

Correct Answer: Option A


Explanation:
Web cache poisoning involves forcing cache servers to store invalid or malicious HTTP responses, which are then distributed to unsuspecting users requesting the same page.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the term given to an attack that floods a target web server with a massive volume of dummy traffic from thousands of infected computers simultaneously to take it offline?
A. Man-in-the-Middle (MitM)
B. Distributed Denial of Service (DDoS)
C. SQL Injection
D. Cross-Site Scripting (XSS)

Correct Answer: Option B


Explanation:
A DDoS attack uses botnets (networks of compromised machines) to overwhelm target servers with traffic, causing them to slow down or crash completely.

This question belongs to: Computer Internet and Web Technologies