Computer Networks questions and answers

OSI/TCP-IP, protocols, addressing and ports. Practise computer networks questions from the technical & programming section of placement tests, with a worked explanation after every answer. Practice is free and needs no sign-up.

Sample computer networks questions with worked answers

Question 1

Which layer of the OSI model is responsible for logical addressing and routing packets between networks?

  1. Data link layer
  2. Transport layer
  3. Network layer
  4. Session layer

Answer: C. Network layer

Explanation: The network layer (layer 3) handles logical (IP) addressing and routing. The data link layer handles frames and MAC addresses, and the transport layer provides end-to-end delivery.

Question 2

How many usable host addresses are available in a single subnet with the mask /26?

  1. 64
  2. 62
  3. 30
  4. 126

Answer: B. 62

Explanation: A /26 leaves 32 - 26 = 6 host bits, which gives 2^6 = 64 addresses. Removing the network and broadcast addresses leaves 62 usable hosts.

Question 3

In a stop-and-wait protocol, transmitting one frame takes 1 ms and the one-way propagation delay is 2 ms. Ignoring ACK transmission and processing time, what is the link utilisation (efficiency)?

  1. 33%
  2. 25%
  3. 20%
  4. 50%

Answer: C. 20%

Explanation: Efficiency = Tt / (Tt + 2 × Tp) = 1 / (1 + 4) = 0.2, or 20%. The sender is busy for 1 ms out of every 5 ms cycle.

All 30 computer networks questions with answers

Computer Networks: common questions

What are computer networks questions?

OSI/TCP-IP, protocols, addressing and ports. They appear in the technical & programming section of many placement tests.

Where can I practise computer networks questions with answers for free?

Right here on LogicWiz Exams. Every computer networks question has a worked explanation after you answer. Practice is free and needs no sign-up.

How should I practise computer networks?

Start with easy questions, then move to medium and hard. Read the explanation after each answer, and come back to the ones you missed.

Start practising

On this page you can start a fresh set of computer networks questions, choose easy, medium or hard, and time yourself if you want to. Or practise the whole subject: Technical & Programming practice.

More technical & programming topics

Other subjects

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge · Test from a job description · LogicWiz Open: free team quiz · Free interview prep