🎓 BookMCQ
← Back to 18. Introduction to Network Layer

📝 Classful addressing classes A B C D E (16 MCQs)

Historical IPv4 Network Classes

Classful addressing was an early IPv4 allocation method that divided unicast addresses into Classes A, B, and C according to leading bit patterns. Class D was reserved for multicast, while Class E was reserved for experimental use. The class determined a default network boundary before modern classless prefix allocation became standard. Such services allow hosts on different physical links to communicate through intermediate network devices.

Default Masks and Address Boundaries

Class A used a default /8 mask, Class B used /16, and Class C used /24. Their first-octet ranges were traditionally 1–126, 128–191, and 192–223 respectively, with special ranges excluded. Class D occupies 224–239 for multicast, and Class E occupies 240–255 for reserved or experimental purposes.

Recognizing a Class from the First Octet

In the historical scheme, the first octet indicates the class for ordinary classful addresses. A first octet of 10 indicates Class A, 150 indicates Class B, and 200 indicates Class C. A first octet of 230 indicates Class D multicast, not an ordinary host address assignment. The process continues until the packet reaches a directly connected destination network or final host.

Example of a Class B Default Network

The address 172.20.5.10 falls within the historical Class B range. Its default classful mask is 255.255.0.0, or /16, giving network 172.20.0.0. This interpretation applies to classful exercises; modern networks use an explicitly configured prefix that may differ from the old default. The values show the practical outcome of the rule and the role of the network device.

Why CIDR Replaced Classful Allocation

Classful addressing allocated large fixed-size blocks and often wasted addresses when an organization needed a smaller network. Classless Inter-Domain Routing introduced variable-length prefixes, allowing allocations to better match demand and enabling route aggregation. Modern routing and subnetting questions should therefore use the stated prefix rather than infer a class boundary.

Misconceptions About IPv4 Classes

'Class D is a normal host class' is incorrect because it is used for multicast. 'Class E is ordinary public unicast space' is incorrect because it is reserved. 'Classful defaults determine every modern subnet' is incorrect because CIDR prefixes explicitly define current network boundaries. Accurate interpretation depends on identifying both the protocol layer and the device performing the operation.

Class Range and Default-Mask Questions

Memorize the historical first-octet ranges and default masks, but recognize their legacy status. Classify addresses using their leading bits, distinguish multicast from unicast, and calculate a classful network only when the question requests it. For modern CIDR problems, follow the supplied prefix instead. Use the given prefix, protocol fields, and units consistently when working through a scenario.

Classful IPv4 Addressing Terms

  • Class A - historical eight-bit network prefix
  • Class B - historical sixteen-bit network prefix
  • Class C - historical twenty-four-bit network prefix
  • Class D - IPv4 multicast address range
  • Class E - reserved experimental address range
  • Classful - uses fixed network classes
4
Easy
8
Medium
4
Hard

📝 All Classful addressing classes A B C D E MCQs

Q1. What is the default subnet mask for a Class B network?

A.255.0.0.0
B.255.255.0.0 ✅
C.255.255.255.0
D.255.255.255.255
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: In classful networking, a Class B address reserves the first two octets for the network identifier. Therefore the default mask is 255.255.0.0255.255.0.0, which sets the first 16 bits to 1 and the remaining 16 bits to 0, allowing the host portion to span the last two octets.

Q2. How many host addresses are available in a single Class C network?

A.256
B.254 ✅
C.255
D.252
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A Class C default mask is 255.255.255.0255.255.255.0, leaving 8 bits for hosts. The total number of host addresses equals 28=2562^{8}=256, but two addresses are reserved (network and broadcast), leaving 256−2=254256-2=254 usable host addresses.

Q3. If a network uses a Class A address with the default mask, which statement must be true about the first octet?

A.It is between 0‑127 ✅
B.It is between 128‑191
C.It is between 192‑223
D.It is between 224‑239
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Class A addresses are defined by a leading binary pattern of 0, which corresponds to decimal values from 0 to 127 for the first octet. Consequently any address with the default Class A mask must have its first octet within that range.

Q4. A VLAN is configured to include all devices whose IP addresses fall within 181.34.23.64/26. Which of the following IP addresses would be excluded?

A.181.34.23.70
B.181.34.23.95
C.181.34.23.66
D.181.34.23.128 ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: A /26 prefix provides 64 addresses ranging from .64 to .127 inclusive. The address .128 lies outside this range, so it would not be part of the VLAN, whereas the other listed addresses fall within the specified subnet.

Q5. A router receives a packet destined for 172.20.5.10 and its routing table contains a Class B entry 172.16.0.0/16 and a Class C entry 172.20.5.0/24. Which entry will be selected and why?

A.Class B because it is broader
B.Class C because it has the longest prefix match ✅
C.Both are equally specific
D.None, the packet is dropped
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Routing follows the longest‑prefix rule: the /24 entry matches more bits (24) than the /16 entry (16). Therefore the Class C route is chosen, directing the packet to the more specific subnet that contains the destination address.

Q6. Compare the maximum number of networks possible in Class A versus Class B addressing. Which statement is correct?

A.Class A has more networks
B.Class B has more networks ✅
C.Both have the same number of networks
D.Neither has a defined limit
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Class A uses 7 bits for the network portion, yielding 27−2=1262^{7}-2=126 possible networks. Class B uses 14 bits, giving 214−2=16,3822^{14}-2=16,382 networks. Hence far more networks are available in Class B than in Class A.

Q7. Evaluate the impact on host count when moving from a Class B default mask to a /20 subnet mask within the same network. Which outcome is accurate?

A.Host count increases
B.Host count decreases ✅
C.Host count stays the same
D.Cannot be determined without more data
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A default Class B mask (/16) provides 16 host bits (216−2=65,5342^{16}-2=65,534 hosts). A /20 mask leaves only 12 host bits (212−2=4,0942^{12}-2=4,094 hosts). Reducing the number of host bits therefore decreases the total usable host addresses.

Q8. Given two VLANs: VLAN X uses MAC addresses starting with E2:13:42, VLAN Y uses IP range 181.34.23.0/28. A device has MAC E2:13:42:A1:23:34 and IP 181.34.23.10. Which VLAN(s) can it belong to based on combined criteria?

A.Only VLAN X
B.Only VLAN Y
C.Both VLAN X and Y ✅
D.Neither VLAN X nor Y
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The device matches the MAC prefix required by VLAN X and also falls within the IP subnet defined for VLAN Y. Since the vendor software can combine characteristics, the device satisfies both criteria and can be placed in both VLANs simultaneously.

Q9. Contrast the address space waste between using Classful addressing versus CIDR for a network requiring 500 hosts. Which scheme uses fewer wasted addresses?

A.Classful with a Class B network
B.Classful with a Class C network
C.CIDR /23 ✅
D.CIDR /22
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: A /23 CIDR block provides 29=5122^{9}=512 addresses, wasting only 12 addresses after reserving network and broadcast IDs. A Class C block offers 254 addresses—insufficient—while a Class B block supplies 65,534 addresses, resulting in massive waste. Hence CIDR /23 is optimal.

Q10. If a VLAN administrator wants to ensure that only devices with IP addresses ending in an even number are allowed, which classful principle could be leveraged to simplify this rule?

A.Use a Class A network
B.Use a subnet mask 255.255.255.254 ✅
C.Use a Class C network
D.Use the default mask
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A mask of 255.255.255.254 corresponds to a /31 subnet, which isolates the least‑significant bit of the address. This bit determines even or odd parity, allowing the VLAN to permit only even‑ending addresses directly through the mask.

Q11. Synthesize a strategy using classful addressing to segment a corporate network into three departments, each requiring at most 2000 hosts, while minimizing wasted networks. Which class and subnet mask combination best meets this requirement?

A.Class A with /21
B.Class B with /21 ✅
C.Class B with /22
D.Class C with /24
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A /21 mask yields 211=20482^{11}=2048 addresses per subnet, slightly exceeding the 2000‑host requirement. Using Class B provides ample network numbers without consuming the vast address space of Class A, making the Class B /21 combination the most efficient choice.

Q12. Explain how combining MAC address and IP address characteristics in VLAN membership can affect broadcast domain size. Which of the following best describes the effect?

A.It always reduces the broadcast domain
B.It can both increase or decrease depending on overlap ✅
C.It has no effect on the broadcast domain
D.It merges broadcast domains
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: When both MAC and IP criteria are applied, the set of eligible devices may shrink (reducing the broadcast domain) or expand if the criteria overlap broadly. Thus the impact varies with the specific address patterns and cannot be assumed to be uniformly reductive or neutral.

Q13. Apply the principle of classful default masks to determine whether the address 191.0.0.5 belongs to a Class B network. Which reasoning is correct?

A.First octet 191 indicates Class B ✅
B.First octet 191 indicates Class C
C.First octet 191 indicates Class A
D.First octet 191 indicates Class D
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: In classful notation, Class B addresses range from 128 to 191 inclusive for the first octet. Since 191 falls within this range, the address is classified as Class B, and its default mask would be 255.255.0.0.

Q14. Given a network using classful addressing, a router needs to forward traffic to a destination 10.5.6.7 but only has a summary route for 10.0.0.0/8. Explain why the router can still correctly forward the packet without a more specific entry.

A.Because /8 covers all Class A addresses ✅
B.Because longest prefix match prefers /8
C.Because classful routing ignores subnet masks
D.Because 10.5.6.7 is a broadcast address
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The /8 prefix encompasses the entire Class A address space, which includes 10.5.6.7. Consequently, the summary route is sufficient to reach the destination, even though a more specific route is absent, as the packet falls within the broader advertised network.

Q15. Analyze the effect of using a Class C default mask (255.255.255.0) on a network that actually requires 300 hosts. Which statement reflects the consequence?

A.The network will have insufficient host addresses ✅
B.It will have excess addresses but acceptable
C.It will cause address fragmentation
D.It will automatically adjust to /23
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A Class C mask provides only 8 host bits, yielding 28−2=2542^{8}-2=254 usable addresses. Since the network needs 300 hosts, the default mask cannot accommodate all devices, leading to a shortage of host addresses.

Q16. If a VLAN is configured to include devices whose MAC addresses have the third octet equal to 0x42, which of the following MAC addresses would be excluded?

A.E2:13:42:A1:23:34
B.F2:A1:42:BC:D3:41
C.00:11:42:FF:EE:DD
D.12:34:56:78:9A:BC ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: The third octet of the MAC address 12:34:56:78:9A:BC is 0x56, not 0x42, so it does not satisfy the VLAN’s inclusion rule and would be excluded, whereas the other listed addresses contain 0x42 in the third octet and would be permitted.

🔗 Related Topics (MCQs)