Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What method might you use to remove duplicate values from an array?



What method might you use to remove duplicate values from an array?..

Answer / Nishant Gupta

"The uniq method in Ruby can be used to remove duplicate values from an array. The uniq method returns a new array with no duplicates, while keeping the original array intact."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

what is the difference extend and include?

1 Answers  


How is visibility of methods changed in ruby?

1 Answers  


Tell us in ruby, it explains about the defined operator?

1 Answers  


What are Ruby arrays and how they can be created?

1 Answers  


Explain how can we define ruby regular expressions?

1 Answers  


Tell me what is the difference between calling super and calling super()?

1 Answers  


How do the following methods differ: @my_string.strip and @my_string.strip! ?

1 Answers  


Tell me how you can create a controller for subject?

1 Answers  


What is ruby?

1 Answers  


Explain the use of global variable $ in Ruby?

1 Answers  


What is a struct in ruby?

1 Answers  


Tell me what are blocks and procs?

1 Answers  


Categories