Vidyalelo
Ruby Programming · Q26

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 26

Q26

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

A.
push(element)
Answer
B.
add(element)
C.
append(element)
D.
insert_end(element)

Answer: Option A

Solution

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