Prepare for the TestOut LabSim A+ Certification Exam with flashcards and multiple choice questions, complete with hints and explanations. Maximize your exam readiness today!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which command tests both connectivity to a device and name resolution for www.widgets.com?

  1. ping www.widgets.com

  2. tracert www.widgets.com

  3. nslookup www.widgets.com

  4. ipconfig www.widgets.com

The correct answer is: ping www.widgets.com

The command that tests both connectivity to a device and name resolution is the one that sends packets to a specified domain and also resolves the domain name to an IP address. The command "ping www.widgets.com" does exactly that. When you execute a ping command, your computer first performs a name resolution to convert the domain name (www.widgets.com) into an IP address using DNS (Domain Name System). Following that, it sends ICMP (Internet Control Message Protocol) Echo Request packets to that IP address to check whether the device is reachable and how long it takes to communicate with it, thus testing connectivity. The other commands listed serve different purposes: "tracert" is used to determine the path packets take to reach a destination, "nslookup" only queries the DNS to retrieve the IP address associated with the domain name without testing connectivity, and "ipconfig" displays network configuration details but does not perform any connectivity or name resolution tests.