Sail E0 Webinar
Question
What is the output of the given code?a=["hey", "ruby", "language"]b=["hey", "ruby", "language"]if a==b    print "Equal"else    print "Not equal"end
Options:
A .  Equal
B .  Error
C .  Not equal
D .  None of the mentioned
Answer: Option A


Elements of both the array are same and in same sequence hence they are equal.
Output:
Equal



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers