A

Admin • 828.03K Points
Coach

Q. Which of the following is correct syntax to create an array in ruby?

  • (A) names = Array.new
  • (B) names = Array.new(20)
  • (C) Both A and B
  • (D) None of the above
  • Correct Answer - Option(C)
  • Views: 16
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
We can create an array using both option A and option B.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.