Networking In C Sharp - Study Mode
[#46] Which method is used to send data over a network using the System.Net.Sockets.Socket class in C#?
Correct Answer
(A) Send()
[#47] What is the role of the System.Net.WebSockets.WebSocket class in C#?
Correct Answer
(D) To provide full-duplex communication over a single, long-lived connection
[#48] What is the purpose of the System.Net.Mail.SmtpClient class in C#?
Correct Answer
(C) To send email messages
[#49] Which method is used to read data from a network stream using the System.Net.Sockets.NetworkStream class in C#?
Correct Answer
(B) Read()
[#50] What is the role of the System.Net.Http.HttpClient class in C# networking?
Correct Answer
(A) To send HTTP requests and receive HTTP responses