Sail E0 Webinar
Question
What is the output of the code? if 1>2   puts "false"   end   else   puts "True"   end
Options:
A .  False
B .  True
C .  Syntax error
D .  None of the mentioned
Answer: Option C


No two end statements required after if and else just one end statement is sufficient.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers