πŸ“Š Ruby
Q. What is the method used to check if a string contains a specific substring in Ruby?
  • (A) .contains
  • (B) .exist
  • (C) .include?
  • (D) .hasSubstring
πŸ’¬ Discuss
βœ… Correct Answer: (C) .include?

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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