Q. What does the << operator do when used with a string in Ruby?

  • (A) Appends a character to the end
  • (B) Removes the last character
  • (C) Concatenates two strings
  • (D) Reverses the string
πŸ’¬ Discuss
βœ… Correct Answer: (A) Appends a character to the end

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
200
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate