CS FundamentalsHardGATE CS · ISRO Scientist

A network admin knows that 10.1.37.6 and 10.1.42.200 are in the same subnet while 10.1.48.1 is in a different one. Which subnet mask is consistent with this?

  1. A. 255.255.248.0
  2. B. 255.255.240.0
  3. C. 255.255.224.0
  4. D. 255.255.255.0

Correct answer: B. 255.255.240.0

In the third octet, 37 = 0010 0101, 42 = 0010 1010 and 48 = 0011 0000. 37 and 42 agree only in their first 4 bits, so the mask can cover at most 4 bits of the third octet (/20); 48 differs from them already in that 4th bit, so /20 is also needed to separate it. /21 splits 37 from 42, /19 puts 48 in the same subnet. Only 255.255.240.0 (/20) works.

More Computer Networks questions

Exams that ask this topic