πŸ“Š Ruby
Q. Which method is used to replace occurrences of a pattern in a string with a specified string in Ruby?
  • (A) String#modify
  • (B) String#sub
  • (C) String#gsub
  • (D) String#replace
πŸ’¬ Discuss
βœ… Correct Answer: (C) String#gsub

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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