Vidyalelo
Ruby Programming · Q62

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 62

Q62

What will be the output of the following? array1 = [0,0,0] array2 = [0,0,0] if array1 == array2 print "They are equal" else print "Not equal" end

A.
They are equal
Answer
B.
Not equal
C.
Nil
D.
None of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board