CS FundamentalsHardTCS NQT · Infosys interview pattern

An organisation owns 172.20.0.0/16 and needs equal-sized subnets, each with at least 1000 usable host addresses. What is the maximum number of such subnets?

  1. A. 32
  2. B. 64
  3. C. 128
  4. D. 16

Correct answer: B. 64

1000 hosts need 10 host bits (2¹⁰ − 2 = 1022; 9 bits give only 510). That makes each subnet a /22, and 16 − 10 = 6 bits are left for subnetting: 2⁶ = 64. 128 uses only 9 host bits.

More Computer Networks questions

Exams that ask this topic