PassSpark

CompTIA Network+ 2026 past questions and answers

This 2026 CompTIA Network+ set has 20 practice questions. Try these 5 free sample questions, tap a question to reveal the answer and explanation. Then practise the whole 2026 set with instant marking.

Practise the full 2026 setTimed exam mode

Sample CompTIA Network+ 2026 questions

1. A workstation has IPv4 address 192.168.40.25/24 and must send traffic to 192.168.41.8. What should it do at Layer 2 to deliver the packet off its local subnet?
  1. ARP for 192.168.41.8 and send the Ethernet frame directly to that host
  2. Broadcast the packet to every host on 192.168.40.0/24
  3. ARP for its default gateway and send the frame to the gateway's MAC address
  4. Send the packet to the DNS server for forwarding

Answer: C. ARP for its default gateway and send the frame to the gateway's MAC address

Because 192.168.41.8 is outside the workstation's /24 subnet, the workstation forwards the packet to its default gateway's MAC address. ARPing for the remote destination would not resolve its MAC on the local Ethernet segment.

2. A company needs a 10 Gbps connection between buildings 600 meters apart. The cable route may be exposed to electromagnetic interference. Which medium is the best fit?
  1. Single-mode fiber with compatible optical transceivers
  2. Cat 6 UTP copper cable
  3. RG-6 coaxial cable
  4. Multimode fiber intended for short in-building links

Answer: A. Single-mode fiber with compatible optical transceivers

Single-mode fiber supports long-distance, high-bandwidth links and is immune to electromagnetic interference. Cat 6 copper Ethernet is limited to much shorter channel distances, while short-reach multimode optics may not support the 600-meter span.

3. How many usable host addresses are available in a conventional IPv4 /27 subnet, excluding the network and broadcast addresses?
  1. 14
  2. 32
  3. 62
  4. 30

Answer: D. 30

A /27 leaves 5 host bits, so it contains 2^5 = 32 total addresses; subtracting the network and broadcast addresses gives 30 usable hosts. Thirty-two is the total address count, not the usable host count.

4. Two managed switches must carry traffic for VLANs 10, 20, and 30 over one inter-switch link. Which configuration should be used on the link?
  1. Configure both switch ports as access ports in VLAN 10.
  2. Configure both switch ports as 802.1Q trunks and allow VLANs 10, 20, and 30.
  3. Configure one port as a routed interface and disable VLAN tagging on the other.
  4. Configure both ports as access ports in the native VLAN.

Answer: B. Configure both switch ports as 802.1Q trunks and allow VLANs 10, 20, and 30.

An 802.1Q trunk carries tagged traffic for multiple VLANs, and the allowed list should include VLANs 10, 20, and 30. An access port carries a single untagged VLAN and cannot transport all three VLANs as required.

5. During a spanning-tree redesign, a specific Layer 2 switch must become the root bridge for a VLAN. Which action makes it most likely to be elected root?
  1. Increase its bridge priority above all other switches.
  2. Set its interface costs to the maximum on every port.
  3. Set its bridge priority lower than the priorities of the other switches.
  4. Disable BPDU processing on its uplinks.

Answer: C. Set its bridge priority lower than the priorities of the other switches.

Spanning tree elects the switch with the lowest bridge ID, which is determined first by bridge priority and then by MAC address. Raising the priority makes a switch less likely, not more likely, to become root.

More CompTIA Network+ years

2025202420232022

All CompTIA Network+ years · CompTIA subjects

PassSpark questions are original practice questions written to each exam's syllabus and format, in the style of past questions. They are not official past papers and are not affiliated with JAMB, WAEC, NECO, any university or any exam body.