πŸ“Š Ruby
Q. What is the correct way to concatenate two strings in Ruby?
  • (A) str1.concat(str2)
  • (B) str1 + str2
  • (C) str1.append(str2)
  • (D) str1.combine(str2)
πŸ’¬ Discuss
βœ… Correct Answer: (B) str1 + str2

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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