Q. How do you add an element to the end of an array in Ruby?
β
Correct Answer: (C)
array.push(element)
Explanation: 'push' method adds an element to the end of an array.