CS FundamentalsVery hardGATE CS · ISRO Scientist

What is the smallest single CIDR block that contains both 10.13.97.4 and 10.13.110.200?

  1. A. 10.13.96.0/20
  2. B. 10.13.96.0/21
  3. C. 10.13.0.0/16
  4. D. 10.13.97.0/20

Correct answer: A. 10.13.96.0/20

Third octets: 97 = 0110 0001 and 110 = 0110 1110 agree only in their first 4 bits, so the common prefix is 8 + 8 + 4 = 20 bits: 10.13.96.0/20 (10.13.96.0–10.13.111.255). /21 covers only 96–103, and 10.13.97.0/20 is not a valid network address for a /20.

More Computer Networks questions

Exams that ask this topic