Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What is the output of the given code?
if 11>2
puts “Eleven is greater than two”
end
print “You’r right”

What is the output of the given code?
if 11>2
puts “Eleven is greater than two”
end
print “You’r right”
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: c
Explanation: 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

Join The Discussion