πŸ“Š Ruby
Q. What is the output of the given code?
Code:
my_string=Ruby
puts(my_string)
  • (A) Ruby
  • (B) Nil
  • (C) Error
  • (D) my_string
πŸ’¬ Discuss
βœ… Correct Answer: (C) Error

Explanation: Ruby should be written in double quotes inorder to indicate a string.

Explanation by: Vinay Kumar
Ruby should be written in double quotes inorder to indicate a string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
159
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vinay Kumar
Publisher
πŸ“ˆ
82%
Success Rate