CompTIA A+ Core 2 · 220-1202
Objective 1.5: Windows command-line tools
Try it now: 8 quick questions on this objective, no account needed.
Objective 1.5 · Windows command line
1 / 8Display active TCP connections, listening ports, and statistics
Which command?
Practice questions for A+ Core 2 objective 1.5, “Windows command-line tools.” Every question is original, written to the 220-1202 exam objectives, and comes with a full explanation — answer them below to see instant grading.
This objective sits in Domain 1.0: Operating Systems, which is about 28% of the exam — so mastering it moves your readiness score meaningfully.
More 1.5 practice questions
Objective 1.5 · practice questions
1 / 5Which diskpart command sequence correctly prepares a new disk by selecting it, creating a primary partition, formatting it, and assigning a drive letter?
All 5 questions, with answers
1.Which diskpart command sequence correctly prepares a new disk by selecting it, creating a primary partition, formatting it, and assigning a drive letter?
- A.select disk → clean → create partition primary → format fs=ntfs quick → assign
- B.select disk → format → partition → assign → active
- C.clean → select disk → format fs=ntfs → create partition → assign
- D.select disk → create partition → active → format → letter
Answer: A. select disk → clean → create partition primary → format fs=ntfs quick → assign. The correct diskpart workflow is: select disk (to target the correct disk), clean (remove partition table), create partition primary, format fs=ntfs quick, then assign (to give it a drive letter). The order matters — you cannot format before creating a partition, and clean before create is required for a fresh setup. "diskpart order: select → clean → create → format → assign."
2.A technician uses "tracert google.com" from a command prompt. What does this command show?
- A.The DNS records for google.com
- B.Each router hop between the local machine and google.com with round-trip times
- C.The open ports on google.com
- D.The MAC address of the default gateway
Answer: B. Each router hop between the local machine and google.com with round-trip times. tracert (Trace Route) sends ICMP packets with increasing TTL values to reveal each router (hop) along the path to a destination, displaying the IP address and round-trip time for each hop. nslookup would be used for DNS records, while netstat would show port information. "tracert = trace the route = see every hop to destination."
3.Which ipconfig switch clears the local DNS resolver cache on a Windows workstation?
- A.ipconfig /release
- B.ipconfig /renew
- C.ipconfig /flushdns
- D.ipconfig /registerdns
Answer: C. ipconfig /flushdns. ipconfig /flushdns purges the local DNS resolver cache, which forces Windows to query DNS servers fresh on the next name resolution request. ipconfig /release releases the current DHCP-assigned IP address, which is a different operation. "Flush = empty the DNS cache — /flushdns does it."
4.Which command-line tool is used to check the integrity of Windows system files and repair them using cached copies?
- A.chkdsk
- B.sfc /scannow
- C.dism /online /cleanup-image
- D.diskpart
Answer: B. sfc /scannow. The System File Checker (sfc /scannow) scans protected Windows system files and replaces corrupted files with cached copies from the Windows component store. chkdsk checks the file system and disk for errors, not Windows system file integrity. "sfc = System File Checker = /scannow to run it."
5.Which command-line utility combines the functions of ping and tracert, providing both hop-by-hop latency statistics and packet loss information?
- A.netstat
- B.nslookup
- C.pathping
- D.arp
Answer: C. pathping. pathping sends packets to each hop along the route and collects statistics over time, showing both the route (like tracert) and packet loss/latency at each hop (like ping). tracert only shows hop-by-hop latency but does not calculate packet loss statistics per hop. "pathping = path + ping = route AND packet loss stats."
Learn 1.5 and every other objective
Your A+ Core 2 path walks the whole exam in short stops, one objective at a time, and maps where you stand as you go.
Start my A+ Core 2 pathNo account needed to start.