1. What is the purpose of the System.Net.Sockets.TcpClient class in C#? A. To handle HTTP requests B. To create a UDP client C. To establish a connection to a TCP server D. To perform DNS resolution Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
2. Which namespace in C# is used for networking-related tasks? A. System.IO B. System.Data C. System.Web D. System.Net Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
3. What is the difference between TCP and UDP in networking? A. TCP provides reliable, connection-oriented communication, while UDP provides unreliable, connectionless communication B. TCP provides unreliable, connectionless communication, while UDP provides reliable, connection-oriented communication C. TCP is faster than UDP D. UDP is more secure than TCP Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
4. Which class in C# is used for sending and receiving data over a network stream? A. System.Net.WebClient B. System.Net.Sockets.UdpClient C. System.Net.Sockets.TcpListener D. System.Net.Sockets.NetworkStream Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
5. What is the purpose of the System.Net.Sockets.UdpClient class in C#? A. To establish a connection to a TCP server B. To perform DNS resolution C. To create a UDP client D. To handle HTTP requests Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
6. What is the role of a server in client-server architecture? A. To establish connections between clients B. To provide resources or services to clients C. To encrypt data transmission between clients D. None of the above Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
7. What is the purpose of the System.Net.IPAddress class in C#? A. To handle HTTP requests B. To create a UDP client C. To represent an IP address D. To establish a connection to a TCP server Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
8. Which method is used to connect a TcpClient object to a remote host in C#? A. Send() B. Receive() C. Accept() D. Connect() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
9. What is the role of a client in client-server architecture? A. To request resources or services from servers B. To provide resources or services to servers C. To establish connections between servers D. To encrypt data transmission between servers Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
10. What is the purpose of the System.Net.Sockets.Socket class in C#? A. To handle HTTP requests B. To create a UDP client C. To establish a connection to a TCP server D. To provide low-level network communication Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board