CS Atlas GATE 2027
Computer Networks course
0 / 90 complete

Computer Networks/Phase 5 · Application Layer

Chapter review L5.3 · Item 81 of 90

HTTP

Read at your own pace. Try the questions before opening the answers.

On this page

Chapter recap

HTTP: request line + headers (+ body); status line + headers + body; TCP port 80; stateless with cookies. Methods GET, POST, HEAD, PUT, DELETE. Codes: 2xx success, 3xx redirection (301, 304), 4xx client error (404), 5xx server error. Page with base + N small objects: non-persistent 2(N + 1) RTT; k parallel 2 + 2⌈N/k⌉; persistent 2 + N; pipelined 3; add DNS time first.

Practice questions

  1. NAT · 2 marks

    Base + 9 objects, RTT 10 ms, non-persistent with 3 parallel connections. Total ms?

    Write your answer before opening the key.

  2. NAT · 1 mark

    Base + 9 objects, RTT 10 ms, persistent with pipelining. Total ms?

    Write your answer before opening the key.

  3. MCQ · 1 mark

    Which method sends form data in the body?

    1. GET
    2. HEAD
    3. POST
    4. DELETE
  4. MCQ · 1 mark

    A 404 status code means:

    1. moved permanently
    2. not found
    3. server error
    4. not modified
  5. MSQ · 1 mark

    Which reduce page load time compared with non-persistent serial HTTP?

    1. Persistent connections
    2. Pipelining
    3. Parallel connections
    4. Disabling caching
  6. NAT · 2 marks

    DNS 30 ms, RTT 20 ms, base + 5 objects, non-persistent serial. Total ms?

    Write your answer before opening the key.

  7. MCQ · 1 mark

    HTTP is called stateless because:

    1. it uses UDP
    2. the server keeps no memory of past requests
    3. it has no headers
    4. it cannot use cookies
  8. NAT · 2 marks

    Base + 4 objects, RTT 50 ms, persistent without pipelining; each object (base too) takes 10 ms to transmit. Total ms?

    Write your answer before opening the key.

Answer key

Try the questions first. Open when you are ready to check.
  1. 80 — 20 + 3 × 20 = 80.

    Review lesson 5.3

  2. 30 — 3 RTT = 30.

    Review lesson 5.3

  3. C — POST.
    • A: GET puts parameters in the URL.
    • B: Headers only.
    • D: Removes an object.

    Review lesson 5.3

  4. B — 4xx client error, not found.
    • A: 301.
    • C: 5xx.
    • D: 304.

    Review lesson 5.3

  5. ABC — All three save RTTs.
    • D: Caching saves time; disabling it does not.

    Review lesson 5.3

  6. 270 — 30 + 2 × 20 × 6 = 270.

    Review lesson 5.3

  7. B — Definition.
    • A: It uses TCP.
    • C: It has headers.
    • D: Cookies exist precisely because it is stateless.

    Review lesson 5.3

  8. 350 — (100 + 10) + 4 × (50 + 10) = 110 + 240 = 350.

    Review lesson 5.3

Ready for the next idea?

Mark this item complete when you’ve finished reading and working through it.