Discussion :: Ruby Programming MCQs
-
What will be the output of the following?array1 = [100, 200, 300, 400, 500]array2 = [1,2,3,4,5]if array1 == array2print "They are equal"elseprint "Not equal"end
Answer : Option B
Explanation :
Two arrays are said to be equal if each and every element of both the arrays are equal. Output: Not equal
Be The First To Comment