Vidyalelo
Ruby Programming · Q10

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 10

Q10

Which method in Ruby is used to remove and return the last element of an array?

A.
pop
Answer
B.
shift
C.
remove
D.
delete_at

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board