CompTIA Network+ 2023 past questions and answers
This 2023 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 2023 set with instant marking.
Practise the full 2023 setTimed exam mode
Sample CompTIA Network+ 2023 questions
1. A technician needs to assign a static host address within 192.168.40.64/27. Which address is a usable host address in that subnet?
- 192.168.40.64
- 192.168.40.95
- 192.168.40.94
- 192.168.40.96
Answer: C. 192.168.40.94
A /27 has 32 addresses: .64 is the network address, .95 is the broadcast address, and .65 through .94 are usable hosts. .96 begins the next subnet.
2. An administrator is creating a DNS record for portal.example.net that should resolve directly to the server's IPv4 address. Which record type is required?
- A
- AAAA
- CNAME
- MX
Answer: A. A
An A record maps a hostname to an IPv4 address. AAAA is for IPv6, CNAME creates an alias, and MX identifies mail exchangers.
3. A router examines a packet's destination IP address to choose the next hop. At which OSI layer does this forwarding decision primarily occur?
- Application
- Data Link
- Transport
- Network
Answer: D. Network
IP addressing and routing are Layer 3, the Network layer, functions. The Data Link layer handles local frame delivery and MAC addresses, not IP route selection.
4. A switch-to-switch link must carry traffic for several VLANs while retaining VLAN identification across the link. Which technology should be configured?
- RSTP
- IEEE 802.1Q tagging on a trunk
- Port security
- Link aggregation only
Answer: B. IEEE 802.1Q tagging on a trunk
An 802.1Q trunk tags frames so the receiving switch can associate them with the correct VLAN. RSTP prevents loops, while port security controls endpoint access.
5. A router learns routes through OSPF. Which metric does OSPF use to calculate its preferred path?
- Hop count only
- Administrative distance alone
- BGP path attributes
- Cost
Answer: D. Cost
OSPF calculates routes using cost, commonly derived from interface bandwidth. Hop count is the principal metric associated with RIP, not OSPF.
More CompTIA Network+ years
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.