A

Admin • 828.03K Points
Coach

Q. Which method is used to get the length of a string in Ruby?

  • (A) size
  • (B) length
  • (C) count
  • (D) Both size and length
  • Correct Answer - Option(D)
  • Views: 7
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
Both 'size' and 'length' return the length of a string in Ruby.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.