A

Admin • 828.03K Points
Coach

Q. In ruby, User can access the string elements by using the__________?

  • (A) {}
  • (B) []
  • (C) ()
  • (D) All of the above
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
User can access the string elements by using the square brackets []. In square brackets [], the user can pass the strings, ranges or indexes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.