Vidyalelo
Ruby Programming · Q48

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 48

Q48

What will be the output of the following? array1 = [1,2,3] array2 = [0,0,0] if array1 == array2 print "Equal" else print "Not equal" end

A.
Equal
Answer
B.
Not equal
C.
Error
D.
None of the mentioned

Answer: Option A

Solution

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