500 hosts would require minimum of 9 bits, as 2^9 = 512. Keeping the lat bit of the third byte reserved for hosts, and the rest seven for subnets, we have first seven bit as 1, making the third byte to be 254. Thus Subnet mask is 255.255.254.0. Now the first subnet will be having subnet id as 0, ie. all the seven bits as 0 in the third byte. And for the first address, we will have first seven bits as zero and last bit as 1 in the 4th Byte (Note: All zeros is not a valid IP, and neither is all 1s). So the first address should ideally be 150.20.0.1. Accordingly the last address would be 150.20.1.254
No need to do all the math, process of elimination pointed to answer,512 = 2^9 hosts. Reserving 9bits from right to left (host bits) leaving right most bit on third Octet as a 0 (254).
Agreed. This was a fairly quick one as no ambiguity in the possible answers.
2^9=512, so 9 bits must be left out of the possible 16 for hosts (address is a class B with a /16 mask) which leaves 7 bits for networks. /16 plus 7 = /23 /24 is 255 . 255 . 255 . 0 1 bit less (which also only has a weight of1) makes 255 . 255 . 254 . 0Only 1 answer has 255 . 255 . 254 . 0 in the answer anywhere. Didn't need to work anything else out.
Took me longer to write the explanation!
Getting fed up with being told about removing a URL from these posts