Discussion Forum : Conditional Statements
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 Your Solution hear:

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