Home / CSE MCQs / Ruby Programming MCQs :: Discussion

Discussion :: Ruby Programming MCQs

  1. What will be the output of the given code?

    boolean_1 = 77 less than 78 && 77 less than 77
    puts boolean_1
  2. A.
    True
    B.
    False
    C.
    Error
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    77<78 is true but 77<77 is false hence the overall expression will evaluate to false. Output: False


Be The First To Comment