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 1>2
puts “false”
else
puts “True”

What is the output of the given code?
if 1>2
puts “false”
else
puts “True”
a) False
b) True
c) Syntax error
d) None of the mentioned

Answer: c
Explanation: End statement is always must after the completion of else statement.

Join The Discussion