Sail E0 Webinar
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 Solution

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

Latest Videos

Latest Test Papers