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


Condition is satisfied and value is not changed.
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