Sail E0 Webinar
Question
What is the output of the given code?if !true   print "False"   elsif !true || true   print "True"   end
Options:
A .  True
B .  False
C .  Syntax eroor
D .  None of the mentioned
Answer: Option A


!true || true evaluates to true, hence elsif block gets executed.
Output:
True



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers