H31-341_V2.5 · Question #79
The mask of an IP subnet is 28 bits, then the number of hosts in the subnet is?
The correct answer is B. 14. With a /28 mask, 28 bits are reserved for the network, leaving 4 bits for hosts (32 - 28 = 4). Those 4 bits yield 2⁴ = 16 total addresses, but you must subtract 2 - one for the network address and one for the broadcast address - leaving 14 usable host addresses, making B…
Question
The mask of an IP subnet is 28 bits, then the number of hosts in the subnet is?
Options
- A30
- B14
- C16
- D32
How the community answered
(38 responses)- A3% (1)
- B74% (28)
- C16% (6)
- D8% (3)
Explanation
With a /28 mask, 28 bits are reserved for the network, leaving 4 bits for hosts (32 - 28 = 4). Those 4 bits yield 2⁴ = 16 total addresses, but you must subtract 2 - one for the network address and one for the broadcast address - leaving 14 usable host addresses, making B correct.
Why the distractors are wrong:
- C (16) is the total address count (2⁴), but it ignores the unusable network and broadcast addresses.
- A (30) = 2⁵ − 2, which applies to a /27 subnet (5 host bits), not /28.
- D (32) = 2⁵, the total address space of a /27 - off by an entire subnet size.
Memory tip: Use the formula 2ⁿ − 2, where n = 32 − prefix length. For /28: n = 4, so 16 − 2 = 14. The "− 2" never changes - always subtract network + broadcast.
Topics
Community Discussion
No community discussion yet for this question.