1.

What does the .upcase method do?(a) Convert the string to uppercase(b) Convert only lowercase string to uppercase and vice-versa(c) Convert the string to lowercase(d) None o the mentionedI got this question in unit test.The above asked question is from String Methods in section Ruby Basics of Ruby

Answer»

Right option is (a) Convert the string to UPPERCASE

The best EXPLANATION: .upcase method is USED to CHANGE the GIVEN string to uppercase.



Discussion

No Comment Found

Related InterviewSolutions