1K0-002 · Question #246
Internet IP Mask value is "Boolean Anded" with IP Address and is used to designate and identify the_____________ of the IP Address bits.
The correct answer is C. NETWORK ID and the HOST ID. See the full explanation below for the reasoning.
Question
Internet IP Mask value is "Boolean Anded" with IP Address and is used to designate and identify the_____________ of the IP Address bits.
Options
- AHOST ID and other HOST ID
- BNETWORK ID and the other NETWORK ID
- CNETWORK ID and the HOST ID
- DWAN ID and LAN ID
- EAll of the above
How the community answered
(46 responses)- A7% (3)
- B15% (7)
- C74% (34)
- D2% (1)
- E2% (1)
Community Discussion
7C is correct. The subnet mask is Boolean ANDed with an IP address precisely to separate the two functional portions of that address, the NETWORK ID (which identifies the logical network segment) and the HOST ID (which identifies the specific device on that segment), and this separation is the entire purpose of the masking operation.
Saw almost this exact wording on mine and the "Boolean AND" part threw me for a second, but I just pictured the AND operation zeroing out bits and remembered the mask separates the NETWORK ID from the HOST ID, so C was obvious once I stopped overthinking it.
C is dead right. AND-ing the mask splits out the network bits from the host bits.
Wait, before I do anything, I want to make sure I actually understand what "Boolean ANDed" means in this context, because I got tripped up on a similar question last week. Is the idea that ANDing the mask with the address basically acts like a filter, where the 1s in the mask "keep" the network portion and the 0s "zero out" the host portion, so you end up with two distinct pieces of information from a single address? Because if that is right, then C makes sense to me, since the mask is doing double duty, revealing both the network ID and the host ID at the same time.
Yeah that is basically right, though I would say the mask on its own only gives you the network portion directly, and you have to invert the mask first before ANDing again to isolate the host bits cleanly.
The subnet mask works by ANDing each bit of the mask against the corresponding bit of the IP address, and wherever the mask has a 1, you are looking at the network portion, wherever it has a 0, you are looking at the host portion. That one operation literally carves the address into two pieces, the network ID and the host ID, which is exactly what C says. A and B try to trick you by splitting the same category against itself, and D is just noise they threw in hoping you would second-guess yourself. On my second sitting I actually stopped on this one for a moment because my first attempt I had convinced myself the mask only "found" the network part, forgetting that by process of elimination it simultaneously identifies the host part too, and that cost me a point the first time around. Once I drew it out on scratch paper bit by bit, it clicked immediately and C was obvious.
The scratch paper step is what saves people on this one, and the point about "by process of elimination" is solid, though I would add that the part that tripped me up was remembering the mask does not tell you the actual host address, just which bits are available for hosts, so if you see a question phrased around "identifying" versus "determining" the value, slow down.