202-450 practice question 6 of 25

Which of the following commands can be used to connect and interact with remote TCP network services? (Choose two.)

Full set: 119 questions
Answer options
A: nettalk
B: nc Correct answer
C: telnet Correct answer
D: cat
E: netmap
Correct Answer:
B. nc; C. telnet
Explanation

Both telnet and nc (netcat) are standard command-line utilities designed to establish network connections and interact with services over TCP. telnet is the traditional tool for remote terminal sessions but can connect to any TCP port. nc is a more versatile tool, often called a "network Swiss-army knife," capable of creating arbitrary TCP and UDP connections for scripting, testing, and data transfer. Both allow a user to send data to and receive data from a remote network service interactively.

Why Incorrect

A. nettalk is a client for the AppleTalk protocol suite, not a general-purpose tool for interacting with TCP services.
D. cat is used to concatenate and display files. It cannot independently initiate a remote TCP network connection to a service.
E. netmap is a high-speed packet I/O framework for network drivers and applications, not a user-facing command for connecting to services.

References

- telnet(1) manual page. Synopsis: "telnet - user interface to the TELNET protocol". Description: "Telnet is used to communicate with another host using the TELNET protocol."

- nc(1) or netcat(1) manual page. Description: "The nc (or netcat) utility is used for just about anything under the sun involving TCP or UDP. It can open TCP connections, send UDP packets, listen on arbitrary TCP and UDP ports..."

- Van Vleck, T. (2014). Introduction to Networks. MIT OpenCourseWare, 6.033 Computer System Engineering, Spring 2009. Lecture 10, slide 23 mentions Telnet as an application layer protocol using TCP.

Scroll to Top