Vidyalelo
Ruby Programming · Q78

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 78

Q78

What is the output of the given code? multi_d_array = [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]] print multi_d_array

A.
[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]].
Answer
B.
[0, 0, 0, 0].
C.
[0, 0, 0, 0][0, 0, 0, 0].
D.
None of the mentioned

Answer: Option A

Solution

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