What is the output of given code?
string="I'am Learning RUBY Language".downcase
string.upcase
string="I'am Learning RUBY Language".downcase
string.upcaseA. Undefined method
B. "I'AM LEARNING RUBY LANGUAGE"
C. I'am Learning RUBY Language
D. None of the mentioned
Answer: Option B
Related Questions on Basic Syntax in Ruby
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user

Join The Discussion