πŸ“Š Ruby
Q. What is the method used to convert a string to an integer in Ruby?
  • (A) .to_i
  • (B) .to_int
  • (C) .convert_int
  • (D) .parse_int
πŸ’¬ Discuss
βœ… Correct Answer: (A) .to_i

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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