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 given code?
“I’am learning Ruby Language”.reverse.upcase.length

What will be the output of the given code?
“I’am learning Ruby Language”.reverse.upcase.length
a) 27
b) egaugnal ybuR gninreal ma’I
c) ERAUGNAL YBUR GNINREAL MA’I
d) Undefined method `reverse’ for 27:Fixnum

Answer: a
Explanation: The .reverse will reverse it then .upcase will capitalize it and .length method give the length.

Join The Discussion