CS Atlas GATE 2027
Computer Networks course
0 / 90 complete

Computer Networks/Phase 5 · Application Layer

Checkpoint CP5 · Item 84 of 90

Application layer

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

On this page

Introduction

Fifteen GATE-style questions on Phase 5, with a few that reach back into earlier phases.

Practice questions

  1. MCQ · 1 mark

    Which statement about client-server is correct?

    1. The server starts each exchange.
    2. The client uses a well-known port.
    3. The server listens on a well-known port.
    4. Only UDP can be used.
  2. NAT · 1 mark

    A TCP server has 40 open connections. Sockets in use by the server process?

    Write your answer before opening the key.

  3. MCQ · 1 mark

    Which DNS record maps an alias to a canonical name?

    1. A
    2. CNAME
    3. MX
    4. NS
  4. NAT · 1 mark

    Cold-cache iterative DNS: host↔local 2 ms, root 30 ms, TLD 20 ms, authoritative 10 ms. Lookup ms?

    Write your answer before opening the key.

  5. MSQ · 1 mark

    Which are true?

    1. DNS normally uses UDP port 53.
    2. HTTP runs over TCP port 80.
    3. HTTP keeps per-client state on the server by default.
    4. Cookies let a server recognise a returning browser.
  6. NAT · 2 marks

    Base + 7 small objects, RTT 20 ms, non-persistent serial. Total ms?

    Write your answer before opening the key.

  7. NAT · 1 mark

    Base + 7 small objects, RTT 20 ms, persistent without pipelining. Total ms?

    Write your answer before opening the key.

  8. NAT · 2 marks

    Base + 15 objects, RTT 10 ms, non-persistent, 5 parallel connections, DNS 20 ms. Total ms?

    Write your answer before opening the key.

  9. MCQ · 1 mark

    HTTP status 301 means:

    1. OK
    2. Moved permanently
    3. Not modified
    4. Bad request
  10. MCQ · 1 mark

    Which HTTP method returns headers only?

    1. GET
    2. HEAD
    3. PUT
    4. POST
  11. MCQ · 2 marks

    Correct order for a freshly connected laptop opening a page:

    1. DNS, DHCP, ARP, TCP, HTTP
    2. DHCP, ARP, DNS, TCP, HTTP
    3. ARP, DHCP, TCP, DNS, HTTP
    4. DHCP, DNS, TCP, ARP, HTTP
  12. NAT · 2 marks

    DNS 8 ms, RTT 32 ms, page transmission 10 ms, one TCP connection. Page fully received after (ms)?

    Write your answer before opening the key.

  13. MCQ · 1 mark

    Which server returns the final A record for www.example.com?

    1. Root
    2. .com TLD
    3. Authoritative for example.com
    4. Any router
  14. MSQ · 1 mark

    Which change hop by hop on the way to the web server?

    1. Source and destination MAC addresses
    2. The frame's CRC
    3. The destination IP address
    4. The IP TTL
  15. NAT · 1 mark

    Persistent pipelined HTTP: base + 20 small objects, RTT 15 ms. Total ms (DNS ignored)?

    Write your answer before opening the key.

Answer key

Try the questions first. Open when you are ready to check.
  1. C — Servers listen on well-known ports.
    • A: Clients start.
    • B: Clients use ephemeral ports.
    • D: TCP or UDP.

    Review lesson 5.1

  2. 41 — 40 + 1 listening.

    Review lesson 5.1

  3. B — CNAME.
    • A: Address.
    • C: Mail.
    • D: Name server.

    Review lesson 5.2

  4. 62 — Sum 62.

    Review lesson 5.2

  5. ABD — Ports and cookies.
    • C: HTTP is stateless.

    Review lesson 5.3

  6. 320 — 2 × 20 × 8 = 320.

    Review lesson 5.3

  7. 180 — 40 + 7 × 20 = 180.

    Review lesson 5.3

  8. 100 — 20 + 20 + 3 × 20 = 100.

    Review lesson 5.3

  9. B — Redirection.
    • A: 200.
    • C: 304.
    • D: 400.

    Review lesson 5.3

  10. B — HEAD.
    • A: Returns the body too.
    • C: Uploads.
    • D: Sends data.

    Review lesson 5.3

  11. B — Address → gateway MAC → name → connection → request.
    • A: DNS needs an address first.
    • C: ARP needs an IP configuration first.
    • D: ARP is needed before the first DNS packet leaves.

    Review lesson 5.4

  12. 82 — 8 + 32 + 32 + 10 = 82.

    Review lesson 5.4

  13. C — Authoritative server.
    • A: Refers to TLD.
    • B: Refers to authoritative.
    • D: Routers do not answer DNS.

    Review lesson 5.2

  14. ABD — Link fields per hop; TTL decremented.
    • C: Fixed end to end.

    Review lesson 5.4

  15. 45 — 3 × 15 = 45.

    Review lesson 5.3

Ready for the next idea?

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