πŸ“Š Ruby
Q. What is the output of the given code?
a=["hey", "ruby", "language"]
b=[1, 2, 3]
puts b[1]
puts a[2]
  • (A) 3 ruby
  • (B) Error
  • (C) 2 language
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) 2 language

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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