A

Admin • 833K Points
Coach

Q. What will be the output of the given ruby code?

Code:
string_array = [a,e,i,o,u]
print string_array
  • (A) Error
  • (B) ["a","e","i","o","u"]
  • (C) aeiou
  • (D) Infinite Loop
  • Correct Answer - Option(B)
  • Views: 29
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin

The array is a string array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.