A

Admin • 831.35K Points
Coach

Q. What is the output of the given ruby code?

Code:
a=[[a,b]]
b=[[e,a]]
print a + b
  • (A) [["a", "b"], ["e", "a"]].
  • (B) [["2a", "b"], ["e"]].
  • (C) TRUE
  • (D) FALSE
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
0

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.