Computer networks worksheet with answers

Free printable Computer networks worksheet: 8 problems from easy to exam level, with an answer key. Print it or save it as a PDF.

For teachers: free to print, copy and use in class. Every new worksheet has new values and its own answer key. A link to ExamProblems on your course page is appreciated.

Name: ____________________   Date: ____________

1.Easy

What is the default port number for DNS?

  1. A80
  2. B161
  3. C53
  4. D67
2.Easy

How is an IPv6 address usually written?

  1. ASixteen decimal numbers separated by dots
  2. BFour decimal numbers separated by dots
  3. CEight groups of four hexadecimal digits separated by colons
  4. DSix pairs of hexadecimal digits separated by dashes or colons
3.Easy

In a peer-to-peer network:

  1. AOne central server handles every request
  2. BDevices cannot communicate directly
  3. COnly routers may share files
  4. DEach node can act as both a client and a server
4.Medium

Which single prefix summarises both 192.168.0.0/24 and 192.168.1.0/24?

  1. A192.168.0.0/22
  2. B192.168.0.0/25
  3. C192.168.0.0/23
  4. D192.168.1.0/23
5.Medium

Which medium access method did classic shared (half-duplex) Ethernet use?

  1. AToken passing
  2. BCSMA/CA
  3. CTDMA
  4. DCSMA/CD
6.Medium

What is the main difference between the HTTP methods GET and POST?

  1. AGET retrieves a resource, POST submits data in the request body
  2. BGET uses UDP, POST uses TCP
  3. CGET is encrypted, POST is not
  4. DGET deletes a resource, POST reads it from the server's database
7.Hard

Why does the side that closes a TCP connection first stay in the TIME_WAIT state for twice the maximum segment lifetime?

  1. ATo keep the encryption keys for later reuse
  2. BSo delayed segments die out and the final ACK can be resent if it was lost
  3. CTo wait for the DNS cache to expire
  4. DTo let the routers along the path update their routing tables for the next connection
8.Hard

An 8-port switch (no VLANs) has one host on each port. How many collision domains and broadcast domains are there?

  1. A1 collision domain, 8 broadcast domains
  2. B8 collision domains, 8 broadcast domains
  3. C1 collision domain, 1 broadcast domain
  4. D8 collision domains, 1 broadcast domain

Answer key

  1. 1. C · 53
  2. 2. C · Eight groups of four hexadecimal digits separated by colons
  3. 3. D · Each node can act as both a client and a server
  4. 4. C · 192.168.0.0/23
  5. 5. D · CSMA/CD
  6. 6. A · GET retrieves a resource, POST submits data in the request body
  7. 7. B · So delayed segments die out and the final ACK can be resent if it was lost
  8. 8. D · 8 collision domains, 1 broadcast domain

Full step-by-step solutions: practise this topic on examproblems.com.