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 ago in Computer Networks by Junior (947 points)   | 61 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 ago by Active (1.5k points)  
edited ago 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.

Top Users Jun 2017
  1. Bikram

    3694 Points

  2. Hemant Parihar

    1484 Points

  3. junaid ahmad

    1432 Points

  4. Arnab Bhadra

    1372 Points

  5. Niraj Singh 2

    1311 Points

  6. Rupendra Choudhary

    1194 Points

  7. rahul sharma 5

    1114 Points

  8. Arjun

    930 Points

  9. srestha

    922 Points

  10. Debashish Deka

    896 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 Jun 19 - 25
  1. Bikram

    1950 Points

  2. Niraj Singh 2

    1306 Points

  3. junaid ahmad

    502 Points

  4. sudsho

    410 Points

  5. akankshadewangan24

    388 Points

23,353 questions
30,061 answers
28,378 users