Select from following answers:- Console
- SocketException
- StreamWriter
- TCPListener

- All Above
Answer 1 is incorrect. The System.Console class handles input for simple console applications. It includes three properties: Console.In, Console.Out, and Console.Error.
Answer 2 is incorrect. A SocketException is thrown by the Socket and Dns classes when an error occurs with the network.
Answer 3 is incorrect. You use an instance of a StreamWriter object to send information across a network stream.
Answer 4 is correct. You use the TCPListener.Start method to begin listening for incoming connection requests. When a client requests a connection at the port you specify, you use the Accept method to create a socket.
Show Correct Answer
Source: Self | Asked In: Many Interviews |
Alert Moderator