GATE / CS ARCHIVE

GATE CSE 2014 SET 2 / QUESTION 28

GATE CSE 2014 Set 2 Q28

Computer Networks · Application Protocols · Full GATE CSE 2014 Set 2 paper

GATE 2014 Set 2, Q28 2 marks · MCQ
Report issue

Application Protocols

Question 28, GATE 2014: A graphical browser at client Q loads an uncached static HTML page from HTTP server S. The page contains exactly one separate static embedded image, also on S. Which is correct for loading both? A At least two HTTP requests, necessarily on separate TCP connections. B At least two HTTP requests, but one TCP connection suffices. C One HTTP request suffices, and one TCP connection is necessary. D One HTTP request suffices without a TCP connection.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. Set up the reasoning. The document and separately referenced image are two resources. A browser first obtains HTML and then requests the image URL, but a persistent HTTP connection can carry multiple requests.

2. Derive the result. The HTML document and its separate image require two HTTP requests when neither is cached. HTTP persistent connections can carry both requests on one TCP connection. Thus B under the conventional separate-resource HTTP-over-TCP model.

3. Check the interpretation. Do not equate request count with connection count. The intended conventional HTTP-over-TCP setting permits connection reuse, so one connection is sufficient even though one request is not.

Original paper, page 36 · Answer key