ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What is the output of the given code
a=[1,2,3,4,b=[1,2,4,6,if a[3]==b[ print "Equal"
end
Correct Answer: D — Equal
puts boolean_array outputs 'True' and 'False' and returns nil, so string_array[nil] raises no useful result. Output is 'o'.