LearnFrenzy
Sign in Take a free test

Computer Networks · Topic 5 of 10

IP Addressing and Subnetting: questions with answers

IPv4 address structure, classes and private ranges, masks and CIDR, network, broadcast and host ranges, subnetting and VLSM, supernetting and route summarisation, and longest-prefix matching.

Questions
45
Timed sets
3
Answers run or computed
37
Your accuracy
–

What this topic covers

7 subtopics
  • Subnetting18
  • CIDR8
  • IPv4 basics7
  • Masks5
  • Forwarding3
  • Classful addressing2
  • VLSM2
  • Beginner 15
  • Intermediate 15
  • Advanced 15

About this topic

Subnetting is the most common networking topic in placement tests and a reliable GATE numerical: find the network and broadcast address, count usable hosts, choose a mask, summarise routes or pick the forwarding entry by longest-prefix match. Every answer here was computed with Python's own ipaddress module. Usable hosts in a subnet = 2^(32 − prefix) − 2, because the all-zeros (network) and all-ones (broadcast) addresses are reserved.

Free preview

Sample questions

Try each one first, then open the answer for the explanation and why the other options are wrong.

Question 1 IPv4 basics Beginner Practice Answer computed One or more answers

Which of these are private (RFC 1918) addresses?

10.1.2.3
11.0.0.1
172.32.0.1
172.20.5.4
192.168.1.1
Show answer and explanation
Correct answer ADE

Explanation

The private blocks are 10.0.0.0/8, 172.16.0.0/12 (172.16 – 172.31) and 192.168.0.0/16. 172.32.0.1 is just outside the /12; 11.0.0.1 is public.

Question 2 Subnetting Intermediate Practice Answer computed

192.168.5.0/24 must be split into equal subnets that each hold at least 50 hosts. What is the maximum number of such subnets?

The answer is a number – work it out, then open the solution.

Show answer and explanation
Correct answer 4

Explanation

50 hosts need 6 host bits (2⁶ − 2 = 62), so the prefix is /26: 2² = 4 subnets of 62 hosts.

Question 3 Subnetting Advanced Practice Answer computed

172.16.0.0/16 uses the subnet mask 255.255.255.224. How many subnets does that give?

The answer is a number – work it out, then open the solution.

Show answer and explanation
Correct answer 2048

Explanation

The mask is /27: 27 − 16 = 11 subnet bits → 2¹¹ = 2048 subnets, each with 30 usable hosts.

42 more questions in the timed setsSame format as the samples, with a timer, a question palette and a full review at the end.
Start practising

Computer Networks

All 10 topics

Topics, levels and full mocks
  1. 01 Network Models, Devices and Delays45 questions · 3 levels
  2. 02 Error Detection and Correction45 questions · 3 levels
  3. 03 Flow Control and Sliding Window45 questions · 3 levels
  4. 04 MAC Layer, Ethernet and Switching45 questions · 3 levels
  5. 05 IP Addressing and Subnetting45 questions · 3 levels
  6. 06 Routing Algorithms and Protocols45 questions · 3 levels
  7. 07 IPv4, IPv6, ARP, NAT, ICMP and DHCP45 questions · 3 levels
  8. 08 TCP, UDP and Congestion Control45 questions · 3 levels
  9. 09 Application Layer: DNS, HTTP and Email45 questions · 3 levels
  10. 10 Network Security and Socket Programming45 questions · 3 levels

Search LearnFrenzy

Esc

Quick links