Q. Which method in Ruby is used to add an element to the end of an array?

  • (A) push
  • (B) pop
  • (C) append
  • (D) insert
πŸ’¬ Discuss
βœ… Correct Answer: (A) push

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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