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
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
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.
Related questions:
2025: 21 May Shift 1
2026: 13 May Shift 2
2025: 21 May Shift 1
2026: 29 May Shift 1