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?
a=”string”
b=”strings”
if(a==b)
print (“a and b are same”)
else
print “Not same”
end

What is the output of the given code?
a=”string”
b=”strings”
if(a==b)
print (“a and b are same”)
else
print “Not same”
end
a) a and b are same
b) Not same
c) a==b
d) None of the mentioned

Answer: b
Explanation: a and b are not similar hence the else condition will get executed.

Join The Discussion