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?
“Eric”.irreverse

What will be the output of the following?
“Eric”.irreverse
a) Eric
b) cirE
c) undefined method
d) none of the mentioned

Answer: c
Explanation: There is no predefined method named irreverse in ruby.
Output: undefined method `irreverse’ for “eric”:String

Join The Discussion