The command ping in networking is used for what purpose?

  • ATo check the speed of the internet connection
  • BTo test connectivity between devices
  • CTo assign IP addresses automatically
  • DTo encrypt data packets
Show answerHide answer

Correct answer B

The ping command is a fundamental network utility used to test and verify the reachability and connectivity between two hosts on an Internet Protocol (IP) network. It works by sending ICMP (Internet Control Message Protocol) echo request packets to a target device and waiting for an echo reply. A successful response confirms that a connection exists and provides a round-trip time (RTT), which indicates the latency.