Arrange the following in sequence of execution:
(A). Calls an application in response to the HTTP request
(B). HTTP response
(C). HTTP request
(D). Program executes and produces HTML output
Arrange the following in sequence of execution:
(A). Calls an application in response to the HTTP request
(B). HTTP response
(C). HTTP request
(D). Program executes and produces HTML output
Solution
The browser sends the request first, the server runs the program, and the output goes back as the response.
(C) HTTP request: the client (browser) asks the web server for a page.
(A) The web server calls an application in response to the HTTP request.
(D) The program executes and produces HTML output.
(B) HTTP response: the server sends that HTML back to the client.
Options 1 and 3: the response (B) cannot come before the program has run and produced the HTML (D).
Option 2: the server cannot call an application (A) before it has received a request (C).
Related questions:
2026: 23 May Shift 2
2025: 22 May Shift 1
2026: 11 May Shift 2
2026: 24 May Shift 1
2025: 21 May Shift 1