Q. Which method is used to print output in Ruby?

  • (A) console.log
  • (B) print
  • (C) echo
  • (D) printf
πŸ’¬ Discuss
βœ… Correct Answer: (B) print
Explanation: The print method outputs data to the screen in Ruby.
Explanation by: Rati Dubey
The print method outputs data to the screen in Ruby.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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