Q. What does the 'gets' method do in Ruby?

  • (A) Prints to console
  • (B) Converts to string
  • (C) Reads input from user
  • (D) Finds the length
πŸ’¬ Discuss
βœ… Correct Answer: (C) Reads input from user

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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