Question
What is the output of the given code?if !true print "False" elsif !true || true print "True" end
Answer: Option A
Was this answer helpful ?
!true || true evaluates to true, hence elsif block gets executed.
Output:
True
Was this answer helpful ?
Submit Solution