adplus-dvertising
frame-decoration

Question

What does the following code display while execution?
class Program
 {
     static void Main(string[] args) 
     {
         Uri obj = new Uri("https://www.compscibits.com/Category/c-sharp-programming");
         Console.WriteLine(obj.AbsoluteUri);
         Console.ReadLine();
     }
 }

a.

compscibits

b.

compscibits.com

c.

www.compscibits.com

d.

https://www.compscibits.com/Category/c-sharp-programming

Posted under C# programming

Answer: (d).https://www.compscibits.com/Category/c-sharp-programming

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does the following code display while execution?

Similar Questions

Discover Related MCQs

Q. Which of these data members of HttpResponse class is used to store the response from a http server?

Q. Which of these classes is used to access actual bits or content information of a URL?

Q. What exception is thrown if the URI format is invalid?

Q. What exception is thrown if the protocol supported by URI prefix is invalid?

Q. What exception is thrown if the user does not have a proper authorization?

Q. Choose the exceptions generated by the Create() method defined by WebRequest:

Q. Choose the exceptions generated by the GetReponse() method defined by WebRequest:

Q. Select the properties related to the network errors generated by WebException:

Q. Which of these classes is used for operating on the request from the client to the server?

Q. Choose the exceptions generated by the GetResponseStream() method defined by WebRequest:

Q. Which of these classes is used to create servers that listen to either local or remote client programs?

Q. Which of these methods gives the full URL of an URL object?

Q. Why are generics used?

Q. Which of these is an correct way of defining generic method?

Q. Select the type argument of open constructed type?

Q. Pointer variable is used to hold the _________ of the variable.

Q. Which among the given operators is referred to as ‘address of’ operator?

Q. Choose the correct statement among the given statements?

Q. What is the size of a char pointer?

Q. After incrementing a float pointer ptr by 1 it would be incremented by __________