Sail E0 Webinar
Question
What is the output of the given code?if 11>2   puts "Eleven is greater than two"   end   print "You'r right"
Options:
A .  Eleven is greater than two
B .  You'r right
C .  Eleven is greater than two You'r right
D .  None of the mentioned
Answer: Option C


If condition is true then code is executed and then it comes out and then execute the remaining code.
Output:
Eleven is greater than two
You'r right



Was this answer helpful ?

Submit Solution

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

Latest Videos

Latest Test Papers