Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
216 views
in Computer by (108k points)
closed by

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


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

1 Answer

0 votes
by (101k points)
selected by
 
Best answer
Correct Answer - Option 2 : Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient

Explanation:

  • Q makes a TCP connection with S
  • First request for the webpage when this request is received by S
  • Second request to S for picking up that image so at least 2 HTTP request are needed.
  • Above two request are done using HTTP version 1.1 ( HTTP persistent connection )
  • HTTP Persistent connection can make several requests on the same server.
  • Here TCP may close the TCP connection.
  • So at least 2 HTTP request are enough and 1 TCP connection is sufficient for desired goal.


Hence option 2 is the correct answer.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...