Discussion :: Ruby Programming MCQs
-
What is the output of the given code?a=["hey", "ruby", "language"]b=["hey", "ruby", "language"]if a==bprint "Equal"elseprint "Not equal"end
Answer : Option A
Explanation :
Elements of both the array are same and in same sequence hence they are equal. Output: Equal
Be The First To Comment