Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Correct way to convert a string to uppercase using string class method()?

a) Upper()
b) ToUpper()
c) Object.ToUpper()
d) None of the mentioned

Answer: c
Explanation: string s1 = “Hello I Love Csharp “;
Console.WriteLine(s1.ToUpper());
Output: HELLO I LOVE CSHARP.

Join The Discussion