In how many ways items can be added in an array in Ruby?
Answer / Ashutosh Yadav
"Items can be added to a Ruby array using the << (append) or push methods. The push method returns the new length of the array, while the << operator does not."
| Is This Answer Correct ? | 0 Yes | 0 No |
In how many ways items can be removed from array in Ruby?
Why Ruby is known as a language of flexibility?
Explain about methods?
what is the difference between String and Symbol?
How to write multiline string in Ruby?
what is the difference between Procs and Blocks?
How to open a file in Ruby?
What is retry statement in ruby?
Tell me what is the difference between calling super() and super call?
Explain how Symbol is different from variables?
Explain some of the looping structures available in ruby?
How to read a file in Ruby?