Multiple choice

Which of the following statements is true?

  1. A web browser and web server are the same programs.

  2. A web browser cannot run on the same machine that runs a web server.

  3. If a web browser and a web server run on the same machine, the web browser cannot access the pages served by the web server on the same machine.

  4. Web browsers and web servers are different programs and they can both run on the same machine.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Web browsers and web servers are distinct programs - browsers request and display web pages, while servers host and deliver them. They can run on the same machine (localhost testing is common). Options A, B, and C are all incorrect statements about browser-server relationships.