Skip to main contentSkip to solution

Arrange the following steps in working of a dynamic web page:

A. HTTP response

B. An Application program handles HTTP requests

C. The program executes and produces HTML output

D. HTTP request

Solution

✅ Correct Option: 4

The browser first sends the request, the server passes it to an application program, the program runs and builds the HTML, and only then is the response sent back.

Correct order:

D. HTTP request: the browser asks the web server for the page.

B. An application program handles HTTP requests: the server hands the request to a program (PHP, ASP, JSP, etc.).

C. The program executes and produces HTML output: the page content is generated at that moment.

A. HTTP response: the generated HTML is sent back to the browser.


Options 2 and 3: the response (A) cannot be sent before the program has produced the HTML (C).

A static page skips steps B and C, because the server returns a stored HTML file directly.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question