What is the primary function of a web server?

Options

  • A. To store and serve web resources to clients
  • B. To design computer processors
  • C. To compile every HTML page into C++
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. To store and serve web resources to clients

Detailed Explanation

Correct Answer: A — To store and serve web resources to clients.

Explanation: A web server receives HTTP requests and returns responses containing resources such as HTML documents, images, CSS files or other data. Server software can also generate dynamic responses.