Discussion :: Ruby Programming MCQs
-
What is the output of the given code?a="string"b="strings"if(a==b)print ("a and b are same")elseprint "Not same"end
Answer : Option B
Explanation :
a and b are not similar hence the else condition will get executed. Output: Not same
Be The First To Comment