Skip to main contentSkip to solution

Arrange the following in sequence of execution:

(A) HTTP Request

(B) Calls an application in response to the HTTP request

(C) Program executes and produces HTML output

(D) HTTP Response

Solution

✅ Correct Option: 3

The client first sends an HTTP request, the web server then calls an application to handle it, the program runs and produces HTML output, and finally the server sends this output back as the HTTP response.

(A) HTTP Request: the browser asks the server for a page or action.

(B) Calls an application in response to the HTTP request: the server passes the request to a program (CGI, servlet, PHP script, etc.).

(C) Program executes and produces HTML output: the application does the processing and generates the page.

(D) HTTP Response: the server returns the generated HTML to the browser.


Options 1, 2 and 4: each puts the application call or its output before the request, which is impossible, since the application is only called in response to a request.

Keyboard Shortcuts

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