Skip to main contentSkip to solution

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

✅ Correct Option: 4

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).

Keyboard Shortcuts

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