Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider the following 2 statements given bel... Start Learning for Free
Consider the following 2 statements given below:
Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.
Statement 2: HTTP is a stateless protocol.
Which of the following statement is true or false?
  • a)
    Statement 1 is true only.
  • b)
    Statement 2 is true only.
  • c)
    Statement 1 is false.
  • d)
    Statement 2 is false.
Correct answer is option 'B,C'. Can you explain this answer?
Most Upvoted Answer
Consider the following 2 statements given below:Statement 1: Each obje...
Statement 1: Each object in persistent HTTP suffers a delay of 2 RTT one RTT for establishing the TCP connection and one RTT to request and receive the object.
This Statement is not true. Since Non-persistent HTTP causes a delay of 2 RTT in TCP transmission.
Persistent HTTP can send data and Objects both in a single TCP connection only so no new TCP connection is required.
Statement 2: HTTP is a stateless protocol.
This Statement is true. Since HTTP does not maintain user state information in its server.
Hence, the correct options are (B) and (C).
Free Test
Community Answer
Consider the following 2 statements given below:Statement 1: Each obje...
Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.
This statement is true.

Explanation:
When using persistent HTTP, the TCP connection between the client and the server is kept open after the initial request. This allows multiple objects to be requested over the same connection without the need to establish a new TCP connection for each object. However, each object still suffers a delay of 2 round-trip times (RTTs).

Reasoning:
- One RTT is required to establish the TCP connection. This includes the time taken for the client to send a SYN packet to the server, the server to respond with a SYN-ACK packet, and the client to acknowledge the SYN-ACK packet with an ACK packet. This process typically takes one RTT.
- Another RTT is required to request and receive the object. After the TCP connection is established, the client sends an HTTP request to the server, and the server responds with the requested object. This request and response process typically takes one RTT.

Therefore, each object in persistent HTTP suffers a delay of 2 RTTs.

Statement 2: HTTP is a stateless protocol.
This statement is true.

Explanation:
HTTP (Hypertext Transfer Protocol) is a protocol used for transmitting hypertext (HTML) documents over the internet. It is a stateless protocol, meaning that it does not retain any information about previous requests or responses.

Reasoning:
- Stateless nature: When a client sends an HTTP request to a server, the server processes the request and sends back a response. Once the response is sent, the server does not retain any information about the client or the previous requests made by the client. Each request is treated independently.
- No session information: Unlike stateful protocols such as FTP or Telnet, HTTP does not maintain any session information. Each request is self-contained and does not rely on previous requests or responses.
- Cookies for session management: To maintain state and session information, HTTP uses cookies. Cookies are small pieces of data stored on the client's browser, which are sent back to the server with each subsequent request. By using cookies, websites can maintain user-specific information and provide personalized experiences.

Therefore, HTTP is indeed a stateless protocol.

Conclusion:
Based on the explanations above, the correct answer is option B and C. Statement 1 is true because each object in persistent HTTP suffers a delay of 2 RTTs. Statement 2 is also true because HTTP is a stateless protocol.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer?
Question Description
Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer?.
Solutions for Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer?, a detailed solution for Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer? has been provided alongside types of Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the following 2 statements given below:Statement 1: Each object in persistent HTTP suffers a delay of 2 RTTs: one RTT for establishing the TCP connection and one RTT to request and receive the object.Statement 2: HTTP is a stateless protocol.Which of the following statement is true or false?a)Statement 1 is true only.b)Statement 2 is true only.c)Statement 1 is false.d)Statement 2 is false.Correct answer is option 'B,C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev