1.

Which of the following is the valid string method?(a) The .length method(b) The .upcase method(c) The .downcase method(d) The .irreverse methodI got this question by my school teacher while I was bunking the class.This key question is from String Methods topic in chapter Ruby Basics of Ruby

Answer»

The CORRECT ANSWER is (d) The .irreverse method

For EXPLANATION: There is no PREDEFINED method which can reverse an already reversed string.



Discussion

No Comment Found

Related InterviewSolutions