A

Admin • 831.35K Points
Coach

Q. How do you define a symbol in Ruby?

  • (A) 'symbol'
  • (B) :symbol
  • (C) #symbol
  • (D) *symbol
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
Symbols are defined by prefixing with a colon (:), e.g., :name.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.