GateAI
DNS and HTTP

GATE CSE 2014 Set 2 · Q28

MCQ2 marksMedium

Time

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

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: B) Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient

DNS and HTTP

When a client QQ requests a webpage containing an embedded image from server SS:

  1. HTTP Requests Needed:

    • The browser first sends one HTTP GET request to fetch the base HTML document.

    • After parsing the HTML, the browser identifies the embedded image tag and sends a second HTTP GET request to fetch the image.

    • Hence, at least 2 HTTP requests must be sent from QQ to SS.

  2. TCP Connections:

    • With non-persistent HTTP (HTTP/1.0), each request requires a separate TCP connection.

    • With persistent HTTP (HTTP/1.1), multiple HTTP requests and responses can be transferred over a single persistent TCP connection.

Therefore, at least 2 HTTP requests are needed, but a single TCP connection is sufficient.

Thus, (B) is the correct option.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This DNS and HTTP previous year question is Q28 of the GATE CSE 2014 Set 2 paper. Find more GATE CSE PYQs on DNS and HTTP in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related DNS and HTTP PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

DNS and HTTP in GATE CSE

DNS and HTTP has 18 GATE CSE PYQs across 15 papers from 2011 to 2026. This is the only 2-mark MCQ among them, and it is the only one in GATE CSE 2014 Set 2.

How GATE tests DNS and HTTP

More from GATE CSE 2014 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2014 Set 2 · Q28 · MCQ

A graphical HTML browser resident at a network client machine Q accesses a static HTML webpage from a 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)?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.