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.

What will be the output of the following?
“Ruby”.reverse.upcase

What will be the output of the following?
“Ruby”.reverse.upcase
a) RUBY
b) ybuR
c) YBUR
d) YBUr

Answer: c
Explanation: First the given string is reversed and then .upcase method is used to capitalize it.
Output: “YBUR”

Join The Discussion