Q. Which of the following is a valid way to declare a variable in Ruby?

  • (A) myVar = 10
  • (B) 10 = myVar
  • (C) myVar
  • (D) myVar = "10"
πŸ’¬ Discuss
βœ… Correct Answer: (A) myVar = 10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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