How do I get the rightmost part of a string?

  1. str.Substring(str.Length);

  2. str.Substring(str.Length - 1);

  3. str.LastChar();

  4. str.RightChar();


Correct Option: B

Find more quizzes: