Q. Which method removes the last element from an array in Ruby?
β
Correct Answer: (A)
pop
Explanation: The pop method removes and returns the last element of an array.