Q. What will 'puts' method do in Ruby?

  • (A) Print text without a newline
  • (B) Print text with a newline
  • (C) Store text in a variable
  • (D) Comment the text
πŸ’¬ Discuss
βœ… Correct Answer: (B) Print text with a newline
Explanation: 'puts' prints the output followed by a newline.
Explanation by: Rati Dubey
'puts' prints the output followed by a newline.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
89
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
93%
Success Rate