Home / CSE MCQs / Ruby Programming MCQs :: Discussion

Discussion :: Ruby Programming MCQs

  1. What is the output of the code?

     if 1>2
       puts "false"
       end
       else
       puts "True"
       end
  2. A.
    False
    B.
    True
    C.
    Syntax error
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No two end statements required after if and else just one end statement is sufficient.


Be The First To Comment