A

Admin • 832.10K Points
Coach

Q. What is the output of the given code?
multi_d_array = [[1,2,3,4],[0,0,0,0]]
multi_d_array.each { |x| puts "#{x}
" }

  • (A) [1, 2, 3, 4]. [0, 0, 0, 0]. [[1, 2, 3, 4], [0, 0, 0, 0]].
  • (B) [0, 0, 0, 0].
  • (C) [0, 0, 0, 0][0, 0, 0, 0].
  • (D) None of the mentioned
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category Ruby
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.