First time here? Checkout the FAQ!
0 votes

If block contains 32 IP address which of the following is first address of the block ?
(E) None of the above

asked in Computer Networks by Active (1.9k points)   | 128 views

1 Answer

0 votes

The first Address in a Block should be exactly divisible by Number of Addresses in a Block

As here block contains 32 IP addresses means #of host bits=5 

Let the IP address X.Y.Z.W  as number of IP address is 32 so we only have to focus about W (last octet)

We have to guess about these 8 bits of W  _ _ _ _ _ _ _ _ . as the number of host bits =5 and we have to tell first address of the block and we know for first address all host would be =0 and now if any of remaining 3 bits is 1 it would then multiply the 25 by some 2a .so ultimately it would become 25+a so that would certainly be divisible by 32 (the number of IP addresses). out of those option 3 and 4 are divisible by 32.

so option C,D are correct one.

answered by Active (1.8k points)  
edited by

Can you please explain why option C can not be the first IP address of the block? When we are dividing a binary no with 2n then if the least significant n bits of that binary no is 0 then it is evenly divisible by 2n .

For 32 the binary representation would be 00100000. Least significant 5 bits are zeros. So it is divisible by 32.

Also, you are saying option C can not be possible as 'a' can not be 0. But in the IP address when we are trying to represent 32 we will need a=1 (total 6 bits) as by 5 bits we can only represent till 31. Then how 'a' is becoming 0 ?

Hello saikat.

Thanks for the attention. I'm sorry for that. I am surprise why did i reject C.

I have updated the answer.

Related questions

Top Users Aug 2017
  1. Bikram

    5174 Points


    4730 Points

  3. akash.dinkar12

    3504 Points

  4. manu00x

    3492 Points

  5. rahul sharma 5

    3188 Points

  6. makhdoom ghaya

    2700 Points

  7. just_bhavana

    2432 Points

  8. stblue

    2244 Points

  9. Tesla!

    2090 Points

  10. pawan kumarln

    1874 Points

25,065 questions
32,220 answers
30,231 users