Discussion Forum : Ruby Basics
Question - What will be the output of the following?"Eric".irreverse
Options:
A .  Eric
B .  cirE
C .  undefined method
D .  None of the mentioned
Answer: Option C


There is no predefined method named irreverse in ruby.
Output:
undefined method `irreverse' for "eric":String



Was this answer helpful ?
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *