StreakPeaked· Practice

ExamsGATETechnical

A graphical HTML browser resident at a network client machine Q accesses a static HTML webpage from an HTTP server S. The static HTML page has exactly one static embedded image which is also at S. Assuming no caching, which one of the following is correct about the HTML webpage loading, including the embedded image?

  1. Q needs to send at least 2 HTTP requests to S, each necessarily in a separate TCP connection to server S
  2. Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient
  3. A single HTTP request from Q to S is sufficient, and a single TCP connection between Q and S is necessary for this
  4. A single HTTP request from Q to S is sufficient, and this is possible without any TCP connection between Q and S

Correct answer: Q needs to send at least 2 HTTP requests to S, each necessarily in a separate TCP connection to server S

Solution

The browser must fetch the HTML page and then the embedded image, so at least two HTTP requests are needed. Under the assumed HTTP behavior in this question, each request requires a separate TCP connection, making the first option correct.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →