πŸ“Š Ruby
Q. Which of the following is correct syntax to create an array in ruby?
  • (A) names = Array.new
  • (B) names = Array.new(20)
  • (C) Both A and B
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both A and B

Explanation: We can create an array using both option A and option B.

Explanation by: Yami Thakur
We can create an array using both option A and option B.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
333
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
84%
Success Rate