Examveda

What will be the output of the following C# code?
class Program
{
    static void Main(string[] args) 
    {
        Uri obj = new Uri("https://www.example.com");
        Console.WriteLine(obj.AbsoluteUri);
        Console.ReadLine();
    }
}

A. example

B. example.com

C. www.example.com

D. https://www.example.com

Answer: Option D


This Question Belongs to C Sharp Programming >> Networking In C Sharp

Join The Discussion

Related Questions on Networking in C Sharp

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