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 given code?
string=”I’am Learning RUBY Language”.downcase
string.upcase

What is the output of given code?
string=”I’am Learning RUBY Language”.downcase
string.upcase
a) Undefined method
b) “I’AM LEARNING RUBY LANGUAGE”
c) I’am Learning RUBY Language
d) None of the mentioned

Answer: b
Explanation: First the given string is changed to uppercase and stored in variable named string and then the string is changed to uppercase.
Output: “I’AM LEARNING RUBY LANGUAGE”

Join The Discussion