πŸ“Š Ruby
Q. Why is gets not preferred instead of gets.chomp?
  • (A) Gets add an extra new line while chomp removes it
  • (B) Gets remove an extra new line
  • (C) Chomp erases the value stored in the variable
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Gets add an extra new line while chomp removes it

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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