Home / CSE MCQs / Ruby Programming MCQs :: Discussion

Discussion :: Ruby Programming MCQs

  1. What is the output of the given code?

    boolean_1 = 77 less than 78
    puts(boolean_1)
  2. A.
    Nil
    B.
    True
    C.
    False
    D.
    Error

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    As 77 is less than 78 hence the boolean value will be printed as true. Output: True


Be The First To Comment