Home / CSE MCQs / Ruby Programming MCQs :: Discussion

Discussion :: Ruby Programming MCQs

  1. What will the following expression evaluate to? true || false
  2. A.
    True
    B.
    False
    C.
    Error
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Boolean operator || evaluates to true only when both the values are true or one is true and other is false.


Be The First To Comment