Discussion :: Ruby Programming MCQs
-
What is the output of the given code?if !trueprint "False"elsif !true || trueprint "True"end
Answer : Option A
Explanation :
!true || true evaluates to true, hence elsif block gets executed. Output: True
Be The First To Comment