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...


Explain some of the looping structures available in ruby?



Explain some of the looping structures available in ruby?..

Answer / Saleem Ahmad

Ruby offers several ways to iterate through collections. The `for`, `while`, and `until` loops are examples of traditional control flow structures, while the `each` method is specifically designed for arrays and enumerable objects. Ruby also features the `times` and `loop` methods for performing specific number of repetitions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Please explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?

1 Answers  


Explain the garbage collection feature of ruby?

1 Answers  


What are the three levels of method access control for classes and what do they signify? What do they imply about the method?

1 Answers  


What is the use of interpolation in ruby?

1 Answers  


Explain the role of modules and mixins in ruby?

1 Answers  


Explain about ruby names?

1 Answers  


what is the difference extend and include?

1 Answers  


What are ruby blocks.

1 Answers  


What are Ruby arrays and how they can be created?

1 Answers  


Explain about the defined operator?

1 Answers  


What is the difference between a class and a module?

1 Answers  


What is yield statement in ruby.

1 Answers  


Categories