Home / CSE MCQs / Ruby Programming MCQs :: Discussion

Discussion :: Ruby Programming MCQs

  1. What will be the output of the following?

    "Eric".irreverse
  2. A.
    Eric
    B.
    cirE
    C.
    undefined method
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

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


Be The First To Comment