Vidyalelo
Ruby Programming · Q65

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 65

Q65

What is the output of the given code? a=[1,2,3,4,5] b=[1,2,4,6,8] if a[3]==b[2] print "Equal" end

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

Answer: Option A

Solution

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