This simple concept of Bitwise ending Network Mask and IP address gives us network ID is being asked in GATE numerous times.
In question we are given with the network id and subnet mask. we are asked that which of the following IP addres belongs to which network?
As it is Classless
just look at third octet as the starting two octets are same in all options.
Approach:
Write the binary for
163 - 10100011 matches with nothing so it will go through default 0.0.0.0
165 - 10100101 matches with 164 - 10100100 255.255.252.0
167 - 10100111 matches with 166 - 10100110 255.255.254.0
171 - 10101011 matches with 170 - 10101010 255.255.254.0
So option A is correct