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 is the output of the following?
ruby.reverse

What is the output of the following?
ruby.reverse
a) Error in compilation
b) ybur
c) 4
d) Undefined local variable ruby

Answer: d
Explanation: String should always be in double quotes and then the .reverse method can be used.
Output:
undefined local variable or method `ruby’ for #<Context:0x7420ac>

Join The Discussion