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 |
What is ruby object?
Explain about portability?
How does a symbol differ from a string?
How does ruby deal with extremely large numbers?
Explain about variables?
How many iterators are there in ruby?
Explain the use of ensure statement in Ruby?
What is a symbol in ruby?
Does hash use “ #==” or “#eql?” To compare hash keys?
Ruby support single inheritance/multiple inheritance or both?
Explain about the programming language ruby?
Explain while loop in ruby.