Q. Which method is used to check if an array includes a specific element in Ruby?

  • (A) include?
  • (B) contains?
  • (C) has_element?
  • (D) exists?
πŸ’¬ Discuss
βœ… Correct Answer: (A) include?

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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